-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new gitAction to push docker images to dockerhub (#191)
* feat(gitAction): add new gitAcion to push docker images to dockerhub * fix(gitAction): don't even need python * fix(gitAction) : name of the branch * refactor(gitAction): cleanup name branch
- Loading branch information
1 parent
f746d0a
commit 25bd5ad
Showing
2 changed files
with
32 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Build and Push Docker Image | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
branches: | ||
- develop | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
build_and_push_image: | ||
name: Build and Push Docker Image | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Log in to Docker Hub | ||
run: echo "${{ secrets.DOCKERHUB_PW }}" | docker login -u "${{ secrets.DOCKERHUB_LOGIN }}" --password-stdin | ||
|
||
- name: Build Docker image | ||
run: make build | ||
|
||
- name: Push Docker image | ||
run: docker push pyronear/pyro-engine:latest |
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