-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Add Docker build and push workflows for Minimap API
- Added a new workflow file `minimap-api-build.yml` to build the Minimap API Docker image. - Added a new workflow file `minimap-api-push.yml` to push the Minimap API Docker image to DockerHub and GHCR. - Deleted the old workflow file `minimap-main.yml` which was used for CI testing. These changes enable automated building and pushing of the Minimap API Docker image.
- Loading branch information
1 parent
b26ea12
commit a2f1df6
Showing
3 changed files
with
52 additions
and
71 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,18 @@ | ||
name: Build Minimap API Docker Image | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'wowskarma_api_minimap/**' | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Build Docker Image | ||
run: docker build -f wowskarma_api_minimap/Dockerfile.dev -t wowskarma_api_minimap:tag . |
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,34 @@ | ||
name: Push Minimap API Docker Image | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ main ] | ||
|
||
jobs: | ||
release_dockerhub: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
|
||
- name: Push to DockerHub | ||
run: docker push wowskarma_api_minimap:tag | ||
|
||
release_ghcr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Login to GHCR | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Push to GHCR | ||
run: | | ||
docker tag wowskarma_api_minimap:tag ghcr.io/${{ github.repository }}/wowskarma_api_minimap:tag | ||
docker push ghcr.io/${{ github.repository }}/wowskarma_api_minimap:tag |
This file was deleted.
Oops, something went wrong.