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