From da57ff77fe8036ee087ceba9afc13711ef82894f Mon Sep 17 00:00:00 2001 From: Youe Graillot Date: Fri, 15 Jul 2022 14:54:18 +0200 Subject: [PATCH] fix github action --- .github/workflows/docker-publish.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 6eae3a7..587ba16 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -17,12 +17,17 @@ jobs: with: submodules: true + # https://github.com/marketplace/actions/get-latest-tag + - name: Get latest tag + id: latest-tag + uses: WyriHaximus/github-action-get-previous-tag@v1 + # https://github.com/booxmedialtd/ws-action-parse-semver - name: Parse version id: semver-version uses: booxmedialtd/ws-action-parse-semver@v1 with: - input_string: ${{ steps.package-version.outputs.current-version}} + input_string: ${{ steps.latest-tag.outputs.tag }} # https://github.com/docker/setup-qemu-action#usage - name: Set up QEMU @@ -37,7 +42,7 @@ jobs: uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOKCERHUB_PASSWORD }} + password: ${{ secrets.DOCKERHUB_PASSWORD }} # https://github.com/docker/metadata-action - name: Extract metadata for Docker