-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fc-dnaapler
- Loading branch information
Showing
108 changed files
with
6,512 additions
and
44 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
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 |
---|---|---|
@@ -0,0 +1,82 @@ | ||
##### ------------------------------------------------------------------------------------------------ ##### | ||
##### This caller workflow tests, builds, and pushes the image to Docker Hub and Quay using the most ##### | ||
##### recent version of pango_aliasor and downloads the current pangolin lineages. ##### | ||
##### It takes no manual input. ##### | ||
##### ------------------------------------------------------------------------------------------------ ##### | ||
|
||
name: Update pango aliasor | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '30 7 * * 1' | ||
|
||
run-name: Updating pango aliasor | ||
|
||
jobs: | ||
update: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: pull repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: set pango_aliasor version | ||
id: latest_version | ||
run: | | ||
version=0.3.0 | ||
echo "version=$version" >> $GITHUB_OUTPUT | ||
file=pango_aliasor/0.3.0/Dockerfile | ||
ls $file | ||
echo "file=$file" >> $GITHUB_OUTPUT | ||
- name: set up docker buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: build to test | ||
id: docker_build_to_test | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: pango_aliasor/${{ steps.latest_version.outputs.version }} | ||
target: test | ||
load: true | ||
push: false | ||
tags: pango_aliasor:update | ||
|
||
- name: Get current date | ||
id: date | ||
run: | | ||
date=$(date '+%Y-%m-%d') | ||
echo "the date is $date" | ||
echo "date=$date" >> $GITHUB_OUTPUT | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | ||
|
||
- name: Login to Quay | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: quay.io | ||
username: ${{ secrets.QUAY_USERNAME }} | ||
password: ${{ secrets.QUAY_ROBOT_TOKEN }} | ||
|
||
- name: Build and push user-defined tag to DockerHub | ||
id: docker_build_user_defined_tag | ||
uses: docker/build-push-action@v5 | ||
with: | ||
file: ${{ steps.latest_version.outputs.file }} | ||
target: app | ||
push: true | ||
tags: | | ||
staphb/pango_aliasor:${{ steps.latest_version.outputs.version }}-${{ steps.date.outputs.date }} | ||
staphb/pango_aliasor:latest | ||
quay.io/staphb/pango_aliasor:${{ steps.latest_version.outputs.version }}-${{ steps.date.outputs.date }} | ||
quay.io/staphb/pango_aliasor:latest | ||
- name: Image digest | ||
run: echo ${{ steps.docker_build.outputs.digest }} |
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
Oops, something went wrong.