Skip to content

Commit 34533a6

Browse files
committed
build arm, fix tag
1 parent 3c45e97 commit 34533a6

1 file changed

Lines changed: 33 additions & 33 deletions

File tree

.github/workflows/cd.yml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
11
permissions:
2-
contents: read
3-
packages: write
2+
contents: read
3+
packages: write
44

55
on:
6-
workflow_dispatch:
7-
push:
8-
branches: [main]
6+
workflow_dispatch:
7+
push:
8+
branches: [main]
99

1010
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
1313

1414
name: delivery
1515

1616
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

Comments
 (0)