-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #352 from sanger/develop
Develop into master
- Loading branch information
Showing
11 changed files
with
788 additions
and
1,222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,17 +32,20 @@ jobs: | |
docker.pkg.github.com/${IMAGE_NAME}:${BRANCH_NAME} | ||
python -m pytest --no-cov -vx | ||
- name: Set release tag | ||
- name: Set release name | ||
# https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable | ||
# On the develop branch this might create RELEASE_VERSION=2.4.6-987654321-develop | ||
# On the master branch this would then only create RELEASE_VERSION=2.4.6 | ||
run: echo "RELEASE_VERSION=$(printf -- '%s%s\n' $(cat .release-version) $([ ${BRANCH_NAME} = "develop" ] && printf -- '-%s-develop' ${GITHUB_RUN_ID} || echo ""))" >> $GITHUB_ENV | ||
# On the develop branch this might create RELEASE_NAME=2.4.6-987654321-develop | ||
# On the master branch this would then only create RELEASE_NAME=2.4.6 | ||
run: echo "RELEASE_NAME=$(printf -- '%s%s\n' $(cat .release-version) $([ ${BRANCH_NAME} = "develop" ] && printf -- '-%s-develop' ${GITHUB_RUN_ID} || echo ""))" >> $GITHUB_ENV | ||
|
||
- name: Set release tag | ||
run: echo "RELEASE_TAG=v$RELEASE_NAME" >> $GITHUB_ENV | ||
|
||
- name: Create release | ||
uses: ncipollo/[email protected] | ||
with: | ||
name: ${{ env.RELEASE_VERSION }} | ||
tag: v${{ env.RELEASE_VERSION }} | ||
name: ${{ env.RELEASE_NAME }} | ||
tag: ${{ env.RELEASE_TAG }} | ||
prerelease: ${{ !(github.ref == 'refs/heads/master') }} | ||
commit: ${{ github.sha }} | ||
|
||
|
@@ -57,14 +60,21 @@ jobs: | |
run: >- | ||
docker tag | ||
docker.pkg.github.com/${IMAGE_NAME}:${BRANCH_NAME} | ||
docker.pkg.github.com/${IMAGE_NAME}:${{ env.RELEASE_VERSION }} | ||
docker.pkg.github.com/${IMAGE_NAME}:${{ env.RELEASE_TAG }} | ||
- name: Push release tag image to registry | ||
run: >- | ||
docker push docker.pkg.github.com/${IMAGE_NAME}:${{ env.RELEASE_VERSION }} | ||
docker push docker.pkg.github.com/${IMAGE_NAME}:${{ env.RELEASE_TAG }} | ||
- name: Remove the oldest package | ||
uses: actions/delete-package-versions@v1 | ||
if: false | ||
- name: Remove old releases | ||
uses: snok/container-retention-policy@v2 | ||
with: | ||
package-name: "${{ github.event.repository.name }}" | ||
image-names: ${{ github.event.repository.name }}/* | ||
cut-off: Four months ago UTC | ||
timestamp-to-use: updated_at | ||
account-type: org | ||
org-name: sanger | ||
keep-at-least: 5 | ||
skip-tags: latest | ||
token: ${{ secrets.REMOVE_OLD_IMAGES }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.3.3 | ||
1.3.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters