mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
Update build.yml
updating build action for stretch
This commit is contained in:
parent
d409a7a152
commit
25ffa4dad6
65
.github/workflows/build.yml
vendored
65
.github/workflows/build.yml
vendored
@ -115,10 +115,9 @@ jobs:
|
|||||||
file: docker/alpine/Dockerfile.build
|
file: docker/alpine/Dockerfile.build
|
||||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
push: true
|
push: true
|
||||||
type: image
|
|
||||||
tags: bpatrik/pigallery2:nightly-alpine
|
tags: bpatrik/pigallery2:nightly-alpine
|
||||||
-
|
-
|
||||||
name: Build and push alpine nightly
|
name: Build and push alpine release
|
||||||
if: startsWith(steps.vars.outputs.type , 'tag')
|
if: startsWith(steps.vars.outputs.type , 'tag')
|
||||||
env:
|
env:
|
||||||
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
|
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
|
||||||
@ -146,46 +145,42 @@ jobs:
|
|||||||
-
|
-
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: pigallery2-release
|
name: pigallery2-release
|
||||||
|
path: pigallery2-release
|
||||||
|
-
|
||||||
|
name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v1
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
id: buildx
|
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
|
-
|
||||||
|
name: Login to DockerHub
|
||||||
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
buildx-version: latest
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
-
|
-
|
||||||
name: Available platforms
|
name: Build and push debian stretch nightly
|
||||||
run: echo ${{ steps.buildx.outputs.platforms }}
|
|
||||||
-
|
|
||||||
name: Docker login
|
|
||||||
run: |
|
|
||||||
docker login -u "${DOCKER_REGISTRY_USERNAME}" -p "${DOCKER_REGISTRY_PASSWORD}"
|
|
||||||
env:
|
|
||||||
DOCKER_REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
|
|
||||||
DOCKER_REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
|
||||||
-
|
|
||||||
name: Run Buildx stretch
|
|
||||||
if: startsWith(steps.vars.outputs.type , 'head')
|
if: startsWith(steps.vars.outputs.type , 'head')
|
||||||
run: |
|
uses: docker/build-push-action@v2
|
||||||
docker buildx build \
|
with:
|
||||||
--platform linux/amd64,linux/arm64,linux/arm/v7 \
|
context: .
|
||||||
--output "type=image,push=true" \
|
file: docker/debian-stretch/Dockerfile.build
|
||||||
--tag bpatrik/pigallery2:nightly-stretch \
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
--file docker/debian-stretch/Dockerfile.build .
|
push: true
|
||||||
|
tags: bpatrik/pigallery2:nightly-stretch
|
||||||
-
|
-
|
||||||
name: Run Buildx stretch for tag
|
name: Build and push debian stretch release
|
||||||
if: startsWith(steps.vars.outputs.type , 'tag')
|
if: startsWith(steps.vars.outputs.type , 'tag')
|
||||||
env:
|
env:
|
||||||
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
|
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
|
||||||
run: |
|
uses: docker/build-push-action@v2
|
||||||
docker buildx build \
|
with:
|
||||||
--platform linux/amd64,linux/arm64,linux/arm/v7 \
|
context: .
|
||||||
--output "type=image,push=true" \
|
file: docker/debian-stretch/Dockerfile.build
|
||||||
--tag bpatrik/pigallery2:nightly-stretch \
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
--tag bpatrik/pigallery2:$RELEASE_VERSION \
|
push: true
|
||||||
--tag bpatrik/pigallery2:latest \
|
tags: |
|
||||||
--file docker/debian-stretch/Dockerfile.build .
|
bpatrik/pigallery2:nightly-stretch
|
||||||
-
|
bpatrik/pigallery2:$RELEASE_VERSION
|
||||||
name: Docker logout
|
bpatrik/pigallery2:latest
|
||||||
run: |
|
|
||||||
docker logout
|
|
||||||
|
Loading…
Reference in New Issue
Block a user