Skip to content

Commit

Permalink
Use docker buildx
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarvl committed Feb 17, 2024
1 parent 03cf212 commit c5ef96b
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 @@ -28,11 +28,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 }}/basic-chess-ai: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 }}/basic-chess-ai: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 c5ef96b

Please sign in to comment.