possible work around buildx inability to push

This commit is contained in:
Neale Pickett 2020-09-18 16:35:02 -06:00
parent 9b58e9ab14
commit 7d0657da7c
1 changed files with 8 additions and 1 deletions

View File

@ -1,4 +1,4 @@
name: Build/Test
name: Build/Test/Push
on:
push:
@ -49,9 +49,15 @@ jobs:
username: neale
password: ${{ secrets.DOCKER_TOKEN }}
# Currently required, because buildx doesn't support auto-push from docker
- name: Set up builder
uses: docker/setup-buildx-action@v1
id: buildx
- name: Build and push moth image
uses: docker/build-push-action@v2
with:
builder: ${{ steps.buildx.outputs.name }}
target: moth
file: build/package/Containerfile
push: true
@ -62,6 +68,7 @@ jobs:
- name: Build and push moth-devel image
uses: docker/build-push-action@v2
with:
builder: ${{ steps.buildx.outputs.name }}
target: moth
file: build/package/Containerfile
push: true