Skip to content

Commit

Permalink
chore: fix docker push
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Jan 23, 2022
1 parent f8c123c commit faae4b6
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Build image
run: docker buildx build --load --tag $IMAGE_NAME --platform linux/arm/v7 --platform linux/arm64 --platform linux/amd64 .
- name: Log into registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
- name: Push image
- name: Build & Push image
run: |
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME
Expand All @@ -45,5 +43,10 @@ jobs:
echo IMAGE_ID=$IMAGE_ID
echo VERSION=$VERSION
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
docker push $IMAGE_ID:$VERSION
docker buildx build \
--push \
--tag $IMAGE_ID:$VERSION \
--platform linux/arm/v7 \
--platform linux/arm64 \
--platform linux/amd64 \
.

0 comments on commit faae4b6

Please sign in to comment.