adding an Alpine edge build, as per discussion in #36
This commit is contained in:
parent
0928070a04
commit
f43c4f64a9
1 changed files with 12 additions and 2 deletions
14
.github/workflows/build-images.yml
vendored
14
.github/workflows/build-images.yml
vendored
|
@ -25,6 +25,8 @@ jobs:
|
|||
echo ::set-output name=buildx_args::--tag ${IMAGE}:latest \
|
||||
--tag ${IMAGE}:${VERSION} --tag ${IMAGE}:${VERSION%%-*} \
|
||||
--platform linux/amd64,linux/386,${QEMU_PLATFORMS} .
|
||||
echo ::set-output name=buildx_edge_args::--tag ${IMAGE}:edge \
|
||||
--platform linux/amd64,linux/386,${QEMU_PLATFORMS} Dockerfile-edge
|
||||
echo ::set-output name=qemu_platforms::${QEMU_PLATFORMS}
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
|
@ -34,9 +36,13 @@ jobs:
|
|||
uses: docker/setup-buildx-action@v1
|
||||
with:
|
||||
install: true
|
||||
- name: Docker Build
|
||||
- name: Docker Build (latest)
|
||||
run: |
|
||||
docker build --no-cache --pull --output "type=image,push=false" ${{ steps.prepare.outputs.buildx_args }}
|
||||
- name: Docker Build (edge)
|
||||
run: |
|
||||
sed 's/^FROM alpine:.*$/FROM alpine:edge/' Dockerfile > Dockerfile-edge
|
||||
docker build --no-cache --pull --output "type=image,push=false" ${{ steps.prepare.outputs.buildx_edge_args }}
|
||||
- name: Docker Login
|
||||
if: success() && github.event_name != 'pull_request' && (github.ref != 'refs/heads/master' || github.event_name == 'schedule')
|
||||
env:
|
||||
|
@ -44,10 +50,14 @@ jobs:
|
|||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||
run: |
|
||||
printenv DOCKER_PASSWORD | docker login --username "${DOCKER_USERNAME}" --password-stdin
|
||||
- name: Docker Push
|
||||
- name: Docker Push (latest)
|
||||
if: success() && github.event_name != 'pull_request' && (github.ref != 'refs/heads/master' || github.event_name == 'schedule')
|
||||
run: |
|
||||
docker build --output "type=image,push=true" ${{ steps.prepare.outputs.buildx_args }}
|
||||
- name: Docker Push (edge)
|
||||
if: success() && github.event_name != 'pull_request' && (github.ref != 'refs/heads/master' || github.event_name == 'schedule')
|
||||
run: |
|
||||
docker build --output "type=image,push=true" ${{ steps.prepare.outputs.buildx_edge_args }}
|
||||
- name: Cleanup
|
||||
if: always() && github.event_name != 'pull_request' && (github.ref != 'refs/heads/master' || github.event_name == 'schedule')
|
||||
run: |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue