diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8d1d36af..60faecd2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -187,8 +187,8 @@ jobs: }); }) - tag_rc_image: - name: tag rc image + tag_rc_image_app: + name: tag rc image app if: github.event_name == 'push' && github.ref == 'refs/heads/main' needs: - build @@ -206,6 +206,25 @@ jobs: - name: Push docker image run: docker push ${{ vars.BASE_IMAGE_NAME }}-app:release-candidate + tag_rc_image_api: + name: tag rc image api + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + needs: + - build + runs-on: ubuntu-latest + steps: + - name: Login to GitHub Packages + run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin + + - name: Pull docker image + run: docker pull ${{ vars.BASE_IMAGE_NAME }}-api:edge + + - name: Tag docker image + run: docker tag ${{ vars.BASE_IMAGE_NAME }}-api:edge ${{ vars.BASE_IMAGE_NAME }}-api:release-candidate + + - name: Push docker image + run: docker push ${{ vars.BASE_IMAGE_NAME }}-api:release-candidate + tag_rc_commit: name: 'tag rc commit' needs: tag_rc_image