Skip to content

Commit

Permalink
Merge pull request #35 from useplunk/dev-driaug-workflow-versioning
Browse files Browse the repository at this point in the history
Get version from package.json and use it as Docker tag
  • Loading branch information
driaug authored Aug 5, 2024
2 parents b7bec9a + 8a26424 commit 07087fd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ jobs:
restore-keys: |
${{ runner.os }}-buildx-
- name: Get version from package.json
id: get_version
run: echo "VERSION=$(jq -r .version package.json)" >> $GITHUB_ENV

- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
Expand All @@ -35,7 +39,7 @@ jobs:
context: .
file: ./Dockerfile
push: true
tags: driaug/plunk:latest
tags: driaug/plunk:${{ env.VERSION }}
platforms: linux/amd64,linux/arm64
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
Expand Down

0 comments on commit 07087fd

Please sign in to comment.