Skip to content

Commit

Permalink
Add GitHub Actions workflow for publishing Docker images with latest …
Browse files Browse the repository at this point in the history
…tag and rename existing workflow for version tagging
  • Loading branch information
kalwalt committed Nov 18, 2024
1 parent 909d4e7 commit 3acd435
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build-docker-latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish to DockerHub with latest-tag
on:
push:
branches:
- main
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: vars
shell: bash
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
- name: Publish to Registry with latest-tag
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: webarkit/nft-marker-creator-app
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: "latest"
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: Publish to DockerHub with a verstion-tag and latest-tag
name: Publish to DockerHub with a verstion-tag
on:
release:
types: [ published ]
push:
branches:
- main
jobs:
update:
runs-on: ubuntu-latest
Expand All @@ -13,10 +10,10 @@ jobs:
- id: vars
shell: bash
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
- name: Publish to Registry with latest-tag and version-tag
- name: Publish to Registry with version-tag
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: webarkit/nft-marker-creator-app
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: "latest,${{ steps.vars.outputs.tag }}"
tags: "${{ steps.vars.outputs.tag }}"

0 comments on commit 3acd435

Please sign in to comment.