Skip to content

Commit

Permalink
CI/CD for docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
kimleeng committed Jul 2, 2020
1 parent 7b2e67b commit 6c90a3b
Show file tree
Hide file tree
Showing 15 changed files with 49 additions and 27 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/docker_build_dev_on_push_branch_dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Build and push Docker images
on:
push:
branches:
- dev
jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Build and push Docker images
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USERNAME }} # optional
password: ${{ secrets.DOCKER_PASSWORD }} # optional
repository: ssidk/bifrost-base
tags: dev
path: components/base # optional, default is .
19 changes: 19 additions & 0 deletions .github/workflows/docker_build_latest_on_push_branch_master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Build and push Docker images
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Build and push Docker images
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USERNAME }} # optional
password: ${{ secrets.DOCKER_PASSWORD }} # optional
repository: ssidk/bifrost-base
tags: latest
path: components/base # optional, default is .
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
# Docker repository to tag the image with
repository: ssidk/bifrost-base
# Comma-delimited list of tags. These will be added to the registry/repository to form the image's tags
tags: latest
# tags: latest
# Automatically tags the built image with the git reference as per the readme
tag_with_ref: true # optional
# Automatically tags the built image with the git short SHA as per the readme
Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/main.yml

This file was deleted.

File renamed without changes.
2 changes: 1 addition & 1 deletion components/ariba_mlst
2 changes: 1 addition & 1 deletion components/ariba_plasmidfinder
2 changes: 1 addition & 1 deletion components/ariba_resfinder
2 changes: 1 addition & 1 deletion components/ariba_virulencefinder
2 changes: 1 addition & 1 deletion components/assemblatron
2 changes: 1 addition & 1 deletion components/cge_mlst
2 changes: 1 addition & 1 deletion components/cge_resfinder
2 changes: 1 addition & 1 deletion components/min_read_check
2 changes: 1 addition & 1 deletion components/ssi_stamper
2 changes: 1 addition & 1 deletion components/whats_my_species

0 comments on commit 6c90a3b

Please sign in to comment.