Skip to content

Commit

Permalink
Merge pull request #1 from Jarvl/build-action-fixes
Browse files Browse the repository at this point in the history
Build action fixes
  • Loading branch information
Jarvl authored Feb 17, 2024
2 parents e55210d + 07b9ec3 commit ff69ac9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ jobs:
- name: Build application
run: npm run build

- name: Install pack CLI
uses: buildpacks/github-actions/[email protected]

- name: Build image
run: pack build ${{ secrets.REGISTRY }}/${{ github.repository }}:latest --builder paketobuildpacks/builder-jammy-base:latest --buildpack gcr.io/paketo-buildpacks/nginx --env BP_WEB_SERVER=nginx

- name: Push image to registry
run: docker push ${{ secrets.REGISTRY }}/${{ github.repository }}:latest
- name: Build and push image
run: |
docker buildx build --platform linux/arm64 -t ${{ secrets.REGISTRY }}/basic-chess-ai:latest-arm64 --push .
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Use the official Nginx image from Docker Hub
FROM nginx:latest
COPY public /usr/share/nginx/html

0 comments on commit ff69ac9

Please sign in to comment.