diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 19447d0f..5e6440c0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -239,6 +239,33 @@ jobs: platforms: ${{ matrix.arch }} push: true + # retag replay containers + retag-replay-containers: + needs: init + runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/v') # Only run for version tags like v0.5.4 + permissions: + packages: write + strategy: + fail-fast: false + matrix: + include: + - image: savant-replay-x86 + - image: savant-replay-arm64 + steps: + - name: Log in to the container registry + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ github.token }} + + - name: Pull and retag container + run: | + docker pull ${{ env.REGISTRY }}/insight-platform/${{ matrix.image }}:${{ needs.init.outputs.savant-rs-version }} + docker tag ${{ env.REGISTRY }}/insight-platform/${{ matrix.image }}:${{ needs.init.outputs.savant-rs-version }} ${{ env.REGISTRY }}/insight-platform/${{ matrix.image }}:v${{ needs.init.outputs.savant-version }} + docker push ${{ env.REGISTRY }}/insight-platform/${{ matrix.image }}:v${{ needs.init.outputs.savant-version }} + # build documentation build-docs: needs: [init, build-savant-deepstream]