Skip to content

Commit

Permalink
Update the deploy GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
arttet committed Sep 27, 2022
1 parent 4af1ed4 commit f94e86b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/image.yml → .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@ jobs:
run: echo "GIT_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
with:
platforms: all
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Login to Registry
uses: docker/login-action@v2
Expand All @@ -40,10 +38,11 @@ jobs:
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: ${{ runner.os }}-buildx-

- uses: docker/build-push-action@v2
- uses: docker/build-push-action@v3
with:
push: true
build-args: |
VERSION=${{ env.GIT_TAG }}
COMMIT_HASH=${{ env.COMMIT_HASH }}
file: deployments/docker/reddit-feed-api/Dockerfile
tags: ghcr.io/${{ github.repository_owner }}/reddit-feed-api/server:${{ env.GIT_TAG }}

0 comments on commit f94e86b

Please sign in to comment.