Skip to content

Commit

Permalink
adds actions that push docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
cash committed Feb 3, 2022
1 parent 9f58284 commit e84727e
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/docker_mysql_push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: MySQL Docker Push
on:
push:
tags:
- '*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: hltcoe/turkle

- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v2
with:
file: Dockerfile-MySQL
push: true
tags: ${{ steps.meta.outputs.tags }}-MySQL
30 changes: 30 additions & 0 deletions .github/workflows/docker_sqlite_push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: sqlite Docker Push
on:
push:
tags:
- '*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: hltcoe/turkle

- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v2
with:
file: Dockerfile-sqlite
push: true
tags: ${{ steps.meta.outputs.tags }}

0 comments on commit e84727e

Please sign in to comment.