From 9c95f7f8f008bd26a40e29da74116e661cd08db3 Mon Sep 17 00:00:00 2001 From: Walter Perdan Date: Sat, 16 Nov 2024 17:15:07 +0100 Subject: [PATCH] modified build-docker script - see issue build-docker.yml github action publish only latest #10 --- .github/workflows/build-docker.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) 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