Saetch #36
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
name: Build Images | |
run-name: ${{ github.actor }} | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
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-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 }} | |
- name: Delete old packages | |
uses: SmartsquareGmbH/[email protected] | |
with: | |
type: docker | |
token: ${{ secrets.GITHUB_TOKEN }} | |
repository: ${{ github.repository }} | |
user: ${{ github.repository_owner }} | |
names: | | |
deightma_coordinator | |
bicubic_interpolation_service | |
deightma_master | |
deightma_nodecs | |
keep: 1 | |
- run: | | |
docker push ghcr.io/saetch/deightma_coordinator:latest | |
- run: | | |
docker push ghcr.io/saetch/bicubic_interpolation_service:latest | |
- run: | | |
docker push ghcr.io/saetch/deightma_master:latest | |
- run: | | |
docker push ghcr.io/saetch/deightma_nodecs:latest | |
build-client: | |
runs-on: Ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: dotnet build ./Client/Client.csproj | |