diff --git a/.gitea/workflows/build_and_publish.yaml b/.gitea/workflows/build_and_publish.yaml index ed95d46..1aaa491 100644 --- a/.gitea/workflows/build_and_publish.yaml +++ b/.gitea/workflows/build_and_publish.yaml @@ -84,9 +84,31 @@ jobs: username: ${{ secrets.REGISTRY_USER }} password: ${{ secrets.REGISTRY_TOKEN }} - - name: latest + - name: manifests run: | docker manifest create \ ${{ env.REGISTRY }}/${{ env.REPOSITORY }}:${{ matrix.ver }} \ --amend ${{ env.REGISTRY }}/${{ env.REPOSITORY }}:${{ matrix.ver }}-amd64 docker manifest push ${{ env.REGISTRY }}/${{ env.REPOSITORY }}:${{ matrix.ver }} + + manifest-latest: + name: update docker manifest + needs: build-image + runs-on: ubuntu-latest + container: + image: catthehacker/ubuntu:act-latest + + steps: + - name: Login to registry + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_TOKEN }} + + - name: latest + run: | + docker manifest create \ + ${{ env.REGISTRY }}/${{ env.REPOSITORY }}:latest \ + --amend ${{ env.REGISTRY }}/${{ env.REPOSITORY }}:5.2.2-amd64 + docker manifest push ${{ env.REGISTRY }}/${{ env.REPOSITORY }}:latest