From 25fd5029be259f364b2b1408415304c22831c03a Mon Sep 17 00:00:00 2001 From: Daniel von Atzigen Date: Wed, 15 May 2024 14:35:00 +0200 Subject: [PATCH] Add build step to tag release candidate api --- .github/workflows/build.yml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) 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