diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml new file mode 100644 index 0000000..bf4d783 --- /dev/null +++ b/.github/workflows/build-image.yml @@ -0,0 +1,31 @@ +name: build-image + +on: + push: + branches: + - master + workflow_dispatch: + +jobs: + build-image: + runs-on: ubuntu-latest + steps: + - name: Source Code Checkout + uses: actions/checkout@master + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Login to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ github.token }} + - name: Build and push + uses: docker/build-push-action@v2 + with: + context: . + platforms: linux/arm64/v8 + push: true + tags: 'ghcr.io/${{ github.repository }}:latest'