Add Docker build/push job
This commit is contained in:
parent
8e9569ea77
commit
bde7a98244
|
|
@ -133,3 +133,34 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
./test/qemu.sh $RUNNER_TEMP/boot-qemu_x86_virt.bin.gz \
|
./test/qemu.sh $RUNNER_TEMP/boot-qemu_x86_virt.bin.gz \
|
||||||
$RUNNER_TEMP/${{ matrix.os }}-${{ matrix.suite }}-${{ matrix.arch }}-*.bin.gz
|
$RUNNER_TEMP/${{ matrix.os }}-${{ matrix.suite }}-${{ matrix.arch }}-*.bin.gz
|
||||||
|
|
||||||
|
deploy-docker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: test-debian-x86
|
||||||
|
name: deploy docker images
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v1
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
|
- name: Login
|
||||||
|
if: github.event_name != 'pull_request' && github.ref_name == 'master'
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
registry: public.ecr.aws/johang
|
||||||
|
username: AWS
|
||||||
|
password: ${{ secrets.AWS_ECR_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
push: ${{ github.event_name != 'pull_request' && github.ref_name == 'master' }}
|
||||||
|
tags: public.ecr.aws/johang/sd-card-images:latest
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue