diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index c0f7c3d..6aed38b 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -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" \ No newline at end of file + tags: "latest,${{ steps.pre-step.outputs.release-version }}" \ No newline at end of file