Skip to content

Commit

Permalink
Merge pull request #111 from swisstopo/develop
Browse files Browse the repository at this point in the history
Release to `int`
  • Loading branch information
daniel-va authored May 16, 2024
2 parents c155fac + 3ffb4f1 commit 8e5665d
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 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,9 +206,30 @@ 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
needs:
- tag_rc_image_app
- tag_rc_image_api
runs-on: ubuntu-latest
steps:
- name: Create/update tag
Expand Down

0 comments on commit 8e5665d

Please sign in to comment.