mirror of https://github.com/dirtbags/moth.git
possible work around buildx inability to push
This commit is contained in:
parent
9b58e9ab14
commit
7d0657da7c
|
@ -1,4 +1,4 @@
|
||||||
name: Build/Test
|
name: Build/Test/Push
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -49,9 +49,15 @@ jobs:
|
||||||
username: neale
|
username: neale
|
||||||
password: ${{ secrets.DOCKER_TOKEN }}
|
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
|
- name: Build and push moth image
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
|
builder: ${{ steps.buildx.outputs.name }}
|
||||||
target: moth
|
target: moth
|
||||||
file: build/package/Containerfile
|
file: build/package/Containerfile
|
||||||
push: true
|
push: true
|
||||||
|
@ -62,6 +68,7 @@ jobs:
|
||||||
- name: Build and push moth-devel image
|
- name: Build and push moth-devel image
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
|
builder: ${{ steps.buildx.outputs.name }}
|
||||||
target: moth
|
target: moth
|
||||||
file: build/package/Containerfile
|
file: build/package/Containerfile
|
||||||
push: true
|
push: true
|
||||||
|
|
Loading…
Reference in New Issue