-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add action to build and push a new image when a new tag is created
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 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,24 @@ | ||
name: Docker Image CI | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" # all tags | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build the Docker image | ||
run: docker build -t eddex/koios-proxy:${{ github.event.release.tag_name }} -t eddex/koios-proxy:latest -f .\KoiosProxy\Dockerfile . | ||
- name: Docker Login (docker hub) | ||
uses: docker/login-action@v2.1.0 | ||
with: | ||
username: eddex | ||
password: ${{ secrets.DOCKER_HUB_PAT }} | ||
- name: Docker push latest | ||
run: docker push eddex/koios-proxy:latest | ||
- name: Docker push tag | ||
run: docker push eddex/koios-proxy:${{ github.event.release.tag_name }} |