forked from StaPH-B/docker-builds
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #1 from StaPH-B/master
updating fork to be in sync with upstream staphb docker-builds repo
- Loading branch information
Showing
548 changed files
with
31,283 additions
and
164 deletions.
There are no files selected for viewing
This file was deleted.
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
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,89 @@ | ||
##### ------------------------------------------------------------------------------------------------ ##### | ||
##### This caller workflow tests, builds, and pushes the image to Docker Hub and Quay using the most ##### | ||
##### recent version of Freyja and downloading the most recent variant information. ##### | ||
##### It takes no manual input. ##### | ||
##### ------------------------------------------------------------------------------------------------ ##### | ||
|
||
name: Update Freyja | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '30 7 1 * *' | ||
|
||
run-name: Updating Freyja | ||
|
||
jobs: | ||
update: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: pull repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: set freyja version | ||
id: latest_version | ||
run: | | ||
version=1.5.1 | ||
echo "version=$version" >> $GITHUB_OUTPUT | ||
file=freyja/$version/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: | ||
file: ${{ steps.latest_version.outputs.file }} | ||
target: test | ||
load: true | ||
push: false | ||
tags: freyja:update | ||
|
||
- name: get freyja database version | ||
id: db_version | ||
run: | | ||
docker run freyja:update freyja demix --version | ||
version=$(docker run freyja:update freyja demix --version | grep . | grep -v Barcode | head -n 1) | ||
echo "the latest version is $version" | ||
echo "version=$version" >> $GITHUB_OUTPUT | ||
- 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 Dockerfile | ||
id: docker_build_and_push | ||
uses: docker/build-push-action@v5 | ||
with: | ||
file: ${{ steps.latest_version.outputs.file }} | ||
target: app | ||
push: true | ||
tags: | | ||
staphb/freyja:${{ steps.latest_version.outputs.version }}-${{ steps.db_version.outputs.version }}-${{ steps.date.outputs.date }} | ||
staphb/freyja:latest | ||
quay.io/staphb/freyja:${{ steps.latest_version.outputs.version }}-${{ steps.db_version.outputs.version }}-${{ steps.date.outputs.date }} | ||
quay.io/staphb/freyja:latest | ||
- name: Image digest | ||
run: echo ${{ steps.docker_build_user_defined_tag.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
##### ------------------------------------------------------------------------------------------------ ##### | ||
##### This caller workflow tests, builds, and pushes the image to Docker Hub and Quay using the most ##### | ||
##### recent version of MLST and downloads the current MLST schemes. ##### | ||
##### It takes no manual input. ##### | ||
##### ------------------------------------------------------------------------------------------------ ##### | ||
|
||
name: Update MLST | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '30 7 1 * *' | ||
|
||
run-name: Updating MLST | ||
|
||
jobs: | ||
update: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: pull repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: set mlst version | ||
id: latest_version | ||
run: | | ||
version=2.23.0 | ||
echo "version=$version" >> $GITHUB_OUTPUT | ||
file=mlst/2.23.0-2024-03/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: mlst/${{ steps.latest_version.outputs.version }} | ||
target: test | ||
load: true | ||
push: false | ||
tags: mlst: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/mlst:${{ steps.latest_version.outputs.version }}-${{ steps.date.outputs.date }} | ||
|
||
- name: Build and push to Quay | ||
id: build | ||
uses: docker/build-push-action@v5 | ||
with: | ||
file: ${{ steps.latest_version.outputs.file }} | ||
target: app | ||
push: true | ||
tags: quay.io/staphb/mlst:${{ steps.latest_version.outputs.version }}-${{ steps.date.outputs.date }} | ||
|
||
- name: Image digest | ||
run: echo ${{ steps.docker_build.outputs.digest }} |
Oops, something went wrong.