-
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.
[#2] added workflow to push to registry
- Loading branch information
Showing
4 changed files
with
32 additions
and
7 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,17 +1,39 @@ | ||
name: Build Test | ||
name: Build Images | ||
run-name: ${{ github.actor }} | ||
on: [push] | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build-dockerfiles: | ||
docker-images: | ||
runs-on: Ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
actions: read | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: docker-compose -f ./Cluster/docker-compose.yml build | ||
- run: docker build -f ./Cluster/Node_cs/Dockerfiles/aot/Dockerfile --tag node_cs_aot ./Cluster/Node_cs/ | ||
- run: docker-compose -f ./Cluster/docker-compose.yml up -d | ||
- run: docker-compose -f ./Cluster/docker-compose.yml down | ||
- run: docker login ghcr.io -u ${{ github.repository_owner }} -p ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- run: docker tag deightma_coordinator ghcr.io/${{ github.repository_owner }}/deightma_coordinator:latest | ||
- run: docker push ghcr.io/${{ github.repository_owner }}/deightma_coordinator:latest | ||
- run: docker tag deightma_bicubic_interpolation_service ghcr.io/${{ github.repository_owner }}/bicubic_interpolation_service:latest | ||
- run: docker push ghcr.io/${{ github.repository_owner }}/bicubic_interpolation_service:latest | ||
- run: docker tag deightma_master ghcr.io/${{ github.repository_owner }}/deightma_master:latest | ||
- run: docker push ghcr.io/${{ github.repository_owner }}/deightma_master:latest | ||
- run: docker tag deightma_nodecs ghcr.io/${{ github.repository_owner }}/deightma_nodecs:latest | ||
- run: docker push ghcr.io/${{ github.repository_owner }}/deightma_nodecs:latest | ||
build-client: | ||
runs-on: Ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: dotnet build ./Client/Client.csproj | ||
- run: dotnet build ./Client/Client.csproj | ||
|
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
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
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