Skip to content

Commit

Permalink
git-version config fixes, release workflow caching improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
fqjony committed Oct 24, 2024
1 parent 492be4f commit 4c418b0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ jobs:
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: false
cache-from: type=inline
cache-to: type=inline,mode=max
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache,mode=max
tags: |
usabilitydynamics/udx-worker:${{ steps.gitversion.outputs.semVer }}
Expand Down Expand Up @@ -125,14 +125,20 @@ jobs:
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Load Docker cache
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ hashFiles('Dockerfile') }}

- name: Push Docker image
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
cache-from: type=inline,mode=max
cache-from: type=local,src=/tmp/.buildx-cache
tags: |
usabilitydynamics/udx-worker:${{ needs.test-pipeline.outputs.semVer }}
usabilitydynamics/udx-worker:latest
Expand Down
6 changes: 3 additions & 3 deletions ci/git-version.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
mode: ContinuousDeployment

branches:
release:
latest:
regex: ^latest$
tag: ""
tag: "release"
increment: Minor

develop:
Expand All @@ -12,4 +12,4 @@ branches:
increment: Patch

assembly-versioning-scheme: MajorMinorPatch
continuous-delivery-fallback-tag: ci
continuous-deployment-fallback-tag: beta

0 comments on commit 4c418b0

Please sign in to comment.