1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

dropping alpine support

This commit is contained in:
Patrik J. Braun 2019-12-30 21:19:57 +01:00
parent 832efde081
commit ad2b3da801

View File

@ -29,62 +29,62 @@ jobs:
with: with:
name: pigallery2-release name: pigallery2-release
path: release path: release
build-alpine: # build-alpine:
runs-on: [ubuntu-latest] # runs-on: [ubuntu-latest]
needs: [create-release] # needs: [create-release]
steps: # steps:
- # -
name: Set tag # name: Set tag
id: vars # id: vars
run: echo ::set-output name=tag::$(echo ${GITHUB_REF:10}) && echo ::set-output name=type::$(echo ${GITHUB_REF:5}) # run: echo ::set-output name=tag::$(echo ${GITHUB_REF:10}) && echo ::set-output name=type::$(echo ${GITHUB_REF:5})
- # -
name: Checkout # name: Checkout
uses: actions/checkout@v1 # uses: actions/checkout@v1
- # -
uses: actions/download-artifact@v1 # uses: actions/download-artifact@v1
with: # with:
name: pigallery2-release # name: pigallery2-release
- # -
name: Set up Docker Buildx # name: Set up Docker Buildx
id: buildx # id: buildx
uses: crazy-max/ghaction-docker-buildx@v1 # uses: crazy-max/ghaction-docker-buildx@v1
with: # with:
version: latest # version: latest
- # -
name: Available platforms # name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }} # run: echo ${{ steps.buildx.outputs.platforms }}
- # -
name: Docker login # name: Docker login
run: | # run: |
docker login -u "${DOCKER_REGISTRY_USERNAME}" -p "${DOCKER_REGISTRY_PASSWORD}" # docker login -u "${DOCKER_REGISTRY_USERNAME}" -p "${DOCKER_REGISTRY_PASSWORD}"
env: # env:
DOCKER_REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }} # DOCKER_REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
DOCKER_REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }} # DOCKER_REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
- # -
name: Run Buildx alpine # name: Run Buildx alpine
if: startsWith(steps.vars.outputs.type , 'head') # if: startsWith(steps.vars.outputs.type , 'head')
run: | # run: |
docker buildx build \ # docker buildx build \
--platform linux/amd64,linux/arm64,linux/386,linux/arm/v6,linux/arm/v7 \ # --platform linux/amd64,linux/arm64,linux/386,linux/arm/v6,linux/arm/v7 \
--output "type=image,push=true" \ # --output "type=image,push=true" \
--tag bpatrik/pigallery2:nightly-alpine \ # --tag bpatrik/pigallery2:nightly-alpine \
--file docker/alpine/Dockerfile.build . # --file docker/alpine/Dockerfile.build .
- name: Run Buildx alpine for tag # - name: Run Buildx alpine for tag
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: | # run: |
docker buildx build \ # docker buildx build \
--platform linux/amd64,linux/arm64,linux/386,linux/arm/v6,linux/arm/v7 \ # --platform linux/amd64,linux/arm64,linux/386,linux/arm/v6,linux/arm/v7 \
--output "type=image,push=true" \ # --output "type=image,push=true" \
--tag bpatrik/pigallery2:nightly-alpine \ # --tag bpatrik/pigallery2:nightly-alpine \
--tag bpatrik/pigallery2:$RELEASE_VERSION-alpine \ # --tag bpatrik/pigallery2:$RELEASE_VERSION-alpine \
--tag bpatrik/pigallery2:latest-alpine \ # --tag bpatrik/pigallery2:latest-alpine \
--file docker/alpine/Dockerfile.build . # --file docker/alpine/Dockerfile.build .
- # -
name: Docker logout # name: Docker logout
run: | # run: |
docker logout # docker logout
build-stretch: build-stretch:
runs-on: [ubuntu-latest] runs-on: [ubuntu-latest]
needs: [create-release] needs: [create-release]