Skip to content

Commit

Permalink
modified build-docker script
Browse files Browse the repository at this point in the history
- see issue build-docker.yml github action publish only latest #10
  • Loading branch information
kalwalt committed Nov 16, 2024
1 parent 9467090 commit d3a155b
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,14 @@ jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Publish to Registry with version-tag
- uses: actions/checkout@v3
- id: pre-step
shell: bash
run: echo "release-version=$(echo ${GITHUB_REF:10})" >> $GITHUB_OUTPUT
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: webarkit/nft-marker-creator-app
name: myDocker/repository
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tag_names: true

- 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"
tags: "latest,${{ steps.pre-step.outputs.release-version }}"

0 comments on commit d3a155b

Please sign in to comment.