Skip to content

Commit 3d3068d

Browse files
committed
ci: Add setup for buildx in Development workflow
1 parent 605c872 commit 3d3068d

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

.github/workflows/development.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,33 @@ jobs:
2121
build:
2222
name: Build, format and test
2323
runs-on: ubuntu-latest
24+
permissions:
25+
packages: write
26+
contents: write
2427
steps:
2528
- name: Checkout
2629
uses: actions/checkout@v4
2730
with:
2831
fetch-depth: 0
2932

33+
- name: Set up QEMU
34+
uses: docker/setup-qemu-action@v3
35+
36+
- name: Set up Buildx
37+
uses: docker/setup-buildx-action@v3
38+
39+
- name: Login to ghcr.io
40+
uses: docker/login-action@v3
41+
with:
42+
registry: ghcr.io
43+
username: ${{ github.actor }}
44+
password: ${{ secrets.GITHUB_TOKEN }}
45+
3046
- name: Build, format and test
31-
run: ./build.cmd Compile Format Test ${{ github.ref == 'refs/heads/develop' && 'BuildImage' || '' }}
47+
run: ./build.cmd Compile Format Test
48+
49+
- name: Push development image
50+
if: ${{ github.ref == 'refs/heads/develop' }}
51+
run: ./build.cmd BuildImage
3252
env:
3353
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)