Skip to content

Commit

Permalink
add automation
Browse files Browse the repository at this point in the history
  • Loading branch information
kimleeng committed Jul 3, 2020
1 parent 6bcf894 commit 8253232
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
18 changes: 18 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,18 @@
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/${{ github.event.repository.name }}
tags: dev
18 changes: 18 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,18 @@
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/${{ github.event.repository.name }}
tags: latest
18 changes: 18 additions & 0 deletions .github/workflows/docker_build_version_on_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Build and push Docker images
on:
release:
types: [created]
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/${{ github.event.repository.name }}
tag_with_ref: true # optional
push: ${{ startsWith(github.ref, 'refs/tags/') }} # optional, default is true

0 comments on commit 8253232

Please sign in to comment.