Skip to content

Commit

Permalink
Add workflow for docker release (#82)
Browse files Browse the repository at this point in the history
* add gh release workflow
  • Loading branch information
KenFigueiredo authored Sep 1, 2020
1 parent 62b8e20 commit 8cde1d4
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Docker CI
name: Docker Test Build

on: [push, pull_request]
on: [pull_request]

jobs:
apiary-docker-image:
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Docker Release

on:
push:
tags:
- v*

jobs:
apiary-docker-image:
name: Apiary Docker Release
runs-on: ubuntu-18.04
steps:
- name: Check out code
uses: actions/checkout@v2

- name: Release Apiary Docker Image
uses: docker/[email protected]
with:
dockerfile: "Dockerfile"
always_pull: true
tag_with_ref: true
repository: expediagroup/apiary-metastore-core
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
push: ${{ startsWith(github.ref, 'refs/tags/') }}

apiary-init-docker-image:
name: Apiary Init Container Docker Release
runs-on: ubuntu-18.04
steps:
- name: Check out code
uses: actions/checkout@v2

- name: Release Apiary Init Docker Image
uses: docker/[email protected]
with:
path: "initContainer"
dockerfile: "initContainer/Dockerfile"
always_pull: true
tag_with_ref: true
repository: expediagroup/apiary-metastore-init-container
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
push: ${{ startsWith(github.ref, 'refs/tags/') }}

0 comments on commit 8cde1d4

Please sign in to comment.