Skip to content

Commit

Permalink
ci: Add setup for buildx in Development workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnatamo committed Jul 27, 2024
1 parent 605c872 commit 3d3068d
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,33 @@ jobs:
build:
name: Build, format and test
runs-on: ubuntu-latest
permissions:
packages: write
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Buildx
uses: docker/setup-buildx-action@v3

- name: Login to ghcr.io
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build, format and test
run: ./build.cmd Compile Format Test ${{ github.ref == 'refs/heads/develop' && 'BuildImage' || '' }}
run: ./build.cmd Compile Format Test

- name: Push development image
if: ${{ github.ref == 'refs/heads/develop' }}
run: ./build.cmd BuildImage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3d3068d

Please sign in to comment.