feat: support for custom node selector #39
Workflow file for this run
This file contains hidden or 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-and deploy | |
| on: | |
| pull_request: {} | |
| release: | |
| types: [published] | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build-manager: | |
| permissions: | |
| packages: write | |
| runs-on: ubuntu-latest | |
| env: | |
| container: ghcr.io/converged-computing/state-machine-operator | |
| name: build state machine operator manager | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build Container | |
| run: make manager | |
| - name: Tag Release Image | |
| if: (github.event_name == 'release') | |
| run: | | |
| tag=${GITHUB_REF#refs/tags/} | |
| echo "Tagging and releasing ${{ env.container}}:manager-${tag}" | |
| docker tag ${{ env.container }}:latest ${{ env.container }}:manager-${tag} | |
| - name: GHCR Login | |
| if: (github.event_name != 'pull_request') | |
| uses: docker/login-action@v2 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Deploy Container | |
| if: (github.event_name != 'pull_request') | |
| run: docker push ${{ env.container }} --all-tags | |
| build-state-machine-operator: | |
| permissions: | |
| packages: write | |
| runs-on: ubuntu-latest | |
| env: | |
| container: ghcr.io/converged-computing/state-machine-operator | |
| name: build state machine operator controller | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build Container | |
| run: make docker-build | |
| - name: Tag Release Image | |
| if: (github.event_name == 'release') | |
| run: | | |
| tag=${GITHUB_REF#refs/tags/} | |
| echo "Tagging and releasing ${{ env.container}}:${tag}" | |
| docker tag ${{ env.container }}:latest ${{ env.container }}:${tag} | |
| - name: GHCR Login | |
| if: (github.event_name != 'pull_request') | |
| uses: docker/login-action@v2 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Deploy Container | |
| if: (github.event_name != 'pull_request') | |
| run: docker push ${{ env.container }} --all-tags |