Skip to content

Commit

Permalink
Add build step to tag release candidate api
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-va committed May 15, 2024
1 parent bb2900a commit 25fd502
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 25fd502

Please sign in to comment.