|
18 | 18 | name: build fluence
|
19 | 19 | steps:
|
20 | 20 | - uses: actions/checkout@v4
|
21 |
| - - uses: actions/setup-go@v3 |
| 21 | + - uses: actions/setup-go@v4 |
22 | 22 | with:
|
23 | 23 | go-version: ^1.19
|
24 | 24 |
|
|
45 | 45 | - name: Deploy Container
|
46 | 46 | if: (github.event_name != 'pull_request')
|
47 | 47 | run: docker push ${{ env.container }} --all-tags
|
48 |
| - |
| 48 | + |
| 49 | + build-controller: |
| 50 | + permissions: |
| 51 | + packages: write |
| 52 | + env: |
| 53 | + container: ghcr.io/flux-framework/fluence-controller |
| 54 | + runs-on: ubuntu-latest |
| 55 | + name: build fluence-controller |
| 56 | + steps: |
| 57 | + - uses: actions/checkout@v4 |
| 58 | + - uses: actions/setup-go@v4 |
| 59 | + with: |
| 60 | + go-version: ^1.19 |
| 61 | + |
| 62 | + - name: Build Containers |
| 63 | + run: | |
| 64 | + make prepare |
| 65 | + make build REGISTRY=ghcr.io/flux-framework CONTROLLER_IMAGE=fluence-controller |
| 66 | +
|
| 67 | + - name: Tag Release Image |
| 68 | + if: (github.event_name == 'release') |
| 69 | + run: | |
| 70 | + tag=${GITHUB_REF#refs/tags/} |
| 71 | + echo "Tagging and releasing ${{ env.container}}:${tag}" |
| 72 | + docker tag ${{ env.container }}:latest ${{ env.container }}:${tag} |
| 73 | +
|
| 74 | + - name: GHCR Login |
| 75 | + if: (github.event_name != 'pull_request') |
| 76 | + uses: docker/login-action@v2 |
| 77 | + with: |
| 78 | + registry: ghcr.io |
| 79 | + username: ${{ github.actor }} |
| 80 | + password: ${{ secrets.GITHUB_TOKEN }} |
| 81 | + |
| 82 | + - name: Deploy Container |
| 83 | + if: (github.event_name != 'pull_request') |
| 84 | + run: docker push ${{ env.container }} --all-tags |
| 85 | + |
49 | 86 | build-sidecar:
|
50 | 87 | permissions:
|
51 | 88 | packages: write
|
|
55 | 92 | name: build sidecar
|
56 | 93 | steps:
|
57 | 94 | - uses: actions/checkout@v4
|
58 |
| - - uses: actions/setup-go@v3 |
| 95 | + - uses: actions/setup-go@v4 |
59 | 96 | with:
|
60 | 97 | go-version: ^1.19
|
61 | 98 |
|
|
0 commit comments