|
1 | 1 | permissions: |
2 | | - contents: read |
3 | | - packages: write |
| 2 | + contents: read |
| 3 | + packages: write |
4 | 4 |
|
5 | 5 | on: |
6 | | - workflow_dispatch: |
7 | | - push: |
8 | | - branches: [main] |
| 6 | + workflow_dispatch: |
| 7 | + push: |
| 8 | + branches: [main] |
9 | 9 |
|
10 | 10 | concurrency: |
11 | | - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} |
12 | | - cancel-in-progress: true |
| 11 | + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} |
| 12 | + cancel-in-progress: true |
13 | 13 |
|
14 | 14 | name: delivery |
15 | 15 |
|
16 | 16 | jobs: |
17 | | - all-the-langs: |
18 | | - strategy: |
19 | | - matrix: |
20 | | - arch: |
21 | | - - amd64 |
22 | | - # - arm64 |
23 | | - runs-on: ${{ matrix.arch == 'amd64' && 'ubuntu-24.04' || 'ubuntu-24.04-arm' }} |
24 | | - env: |
25 | | - TAG: ghcr.io/${{ github.repository }}/examples/all-the-langs:latest |
26 | | - BASALT_SERVER_TAG: main |
27 | | - BASALT_WEB_TAG: dev-pr-107 |
28 | | - steps: |
29 | | - - uses: actions/checkout@v4 |
30 | | - - name: Install Basalt CLI |
31 | | - run: cargo install --locked basalt-cli |
32 | | - - name: Log in to GitHub Container Registry |
33 | | - uses: docker/login-action@v3 |
34 | | - with: |
35 | | - registry: ghcr.io |
36 | | - username: ${{ github.actor }} |
37 | | - password: ${{ secrets.GITHUB_TOKEN }} |
38 | | - - name: Build docker image |
39 | | - run: basalt build -t ${{ env.TAG }} ./basalt.toml |
40 | | - working-directory: all-the-langs |
41 | | - - name: Push image to GHCR |
42 | | - run: docker push ${{ env.TAG }} |
| 17 | + all-the-langs: |
| 18 | + strategy: |
| 19 | + matrix: |
| 20 | + arch: |
| 21 | + - amd64 |
| 22 | + - arm64 |
| 23 | + runs-on: ${{ matrix.arch == 'amd64' && 'ubuntu-24.04' || 'ubuntu-24.04-arm' }} |
| 24 | + env: |
| 25 | + TAG: ghcr.io/${{ github.repository }}/all-the-langs:latest |
| 26 | + BASALT_SERVER_TAG: main |
| 27 | + BASALT_WEB_TAG: dev-pr-107 |
| 28 | + steps: |
| 29 | + - uses: actions/checkout@v4 |
| 30 | + - name: Install Basalt CLI |
| 31 | + run: cargo install --locked basalt-cli |
| 32 | + - name: Log in to GitHub Container Registry |
| 33 | + uses: docker/login-action@v3 |
| 34 | + with: |
| 35 | + registry: ghcr.io |
| 36 | + username: ${{ github.actor }} |
| 37 | + password: ${{ secrets.GITHUB_TOKEN }} |
| 38 | + - name: Build docker image |
| 39 | + run: basalt build -t ${{ env.TAG }} ./basalt.toml |
| 40 | + working-directory: all-the-langs |
| 41 | + - name: Push image to GHCR |
| 42 | + run: docker push ${{ env.TAG }} |
0 commit comments