mirror of
https://github.com/bpatrik/pigallery2.git
synced 2024-12-25 02:04:15 +02:00
Create blank.yml
This commit is contained in:
parent
27fe518b89
commit
5937c98fea
68
.github/workflows/blank.yml
vendored
Normal file
68
.github/workflows/blank.yml
vendored
Normal file
@ -0,0 +1,68 @@
|
||||
name: buildx
|
||||
on:
|
||||
pull_request:
|
||||
branches: master
|
||||
push:
|
||||
branches: master
|
||||
|
||||
jobs:
|
||||
create-release:
|
||||
runs-on: [ubuntu-latest]
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v1
|
||||
-
|
||||
name: Setup Node.js for use with actions
|
||||
uses: actions/setup-node@v1.1.0
|
||||
with:
|
||||
version: 12
|
||||
-
|
||||
name: Install Deps
|
||||
run: npm install --unsafe-perm
|
||||
-
|
||||
name: Create Release
|
||||
run: npm run create-release
|
||||
- uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: pigallery2-release
|
||||
path: release
|
||||
build:
|
||||
runs-on: [ubuntu-latest]
|
||||
needs: [create-release]
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v1
|
||||
-
|
||||
uses: actions/download-artifact@v1
|
||||
with:
|
||||
name: pigallery2-release
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: crazy-max/ghaction-docker-buildx@v1
|
||||
with:
|
||||
version: latest
|
||||
-
|
||||
name: Available platforms
|
||||
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
|
||||
run: |
|
||||
docker buildx build \
|
||||
--platform linux/amd64,linux/arm64,linux/386,linux/arm/v6,linux/arm/v7 \
|
||||
--output "type=image,push=true" \
|
||||
--tag bpatrik/pigallery2:nightly-stretch \
|
||||
--file docker/stretch/Dockerfile.build .
|
||||
-
|
||||
name: Docker logout
|
||||
run: |
|
||||
docker logout
|
Loading…
Reference in New Issue
Block a user