-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow for docker release (#82)
* add gh release workflow
- Loading branch information
1 parent
62b8e20
commit 8cde1d4
Showing
2 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Docker CI | ||
name: Docker Test Build | ||
|
||
on: [push, pull_request] | ||
on: [pull_request] | ||
|
||
jobs: | ||
apiary-docker-image: | ||
|
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,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/') }} |