Skip to content

Commit

Permalink
release workflow improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
fqjony committed Oct 2, 2024
1 parent e80d663 commit 8c5315d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,20 @@ jobs:
useConfigFile: true
configFilePath: ci/git-version.yml

- name: Build Docker image and export cache
- name: Build Docker image
uses: docker/build-push-action@v6
id: build-image
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: false
load: true
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
tags: |
usabilitydynamics/udx-worker:${{ steps.gitversion.outputs.semVer }}
usabilitydynamics/udx-worker:latest
build-args: |
GIT_VERSION=${{ steps.gitversion.outputs.semVer }}
GIT_VERSION=${{ steps.gitversion.outputs.semVer }}
- name: Generate changelog
id: changelog
Expand Down Expand Up @@ -104,7 +103,7 @@ jobs:

docker-release:
runs-on: ubuntu-latest
needs: [test-pipeline, github-release]
needs: [github-release]
permissions:
contents: write
steps:
Expand All @@ -119,14 +118,15 @@ jobs:
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Push Docker image (cached)
- name: Build and push Docker image (release)
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
tags: |
usabilitydynamics/udx-worker:${{ needs.test-pipeline.outputs.semVer }}
usabilitydynamics/udx-worker:latest
Expand Down

0 comments on commit 8c5315d

Please sign in to comment.