Skip to content

Commit

Permalink
Enable multi-platform build
Browse files Browse the repository at this point in the history
  • Loading branch information
LauraWebdev committed Jan 11, 2025
1 parent 0239cba commit 6737fa5
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/publish-on-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build and push the image
run : |
docker login --username laurawebdev --password ${{ secrets.GH_PAT }} ghcr.io
docker build . --tag ghcr.io/laurawebdev/khid-docker:latest
docker push ghcr.io/laurawebdev/khid-docker:latest
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: laurawebdev
password: ${{ secrets.GH_PAT }}
-
name: Build and push the image
uses: docker/build-push-action@v2
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: ghcr.io/laurawebdev/khid-docker:latest

0 comments on commit 6737fa5

Please sign in to comment.