1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-23 01:27:14 +02:00

Updating github build actions

This commit is contained in:
Patrik J. Braun 2022-12-10 00:26:57 +01:00
parent be7937293b
commit ac1f226bfe

View File

@ -32,9 +32,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
@ -71,10 +71,10 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
-
name: Setup Node.js for use with actions
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 18
-
@ -83,7 +83,7 @@ jobs:
-
name: Create Release
run: npm run create-release -- --skip-opt-packages=ffmpeg-static,ffprobe-static --force-opt-packages
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: pigallery2-release
path: release
@ -106,29 +106,29 @@ jobs:
id: vars
run: echo ::set-output name=tag::$(echo ${GITHUB_REF:10}) && echo ::set-output name=type::$(echo ${GITHUB_REF:5})
- name: Checkout
uses: actions/checkout@v2
- uses: actions/download-artifact@v2
uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: pigallery2-release
path: pigallery2-release
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build docker
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
file: docker/${{ matrix.container }}/Dockerfile.build
platforms: ${{ matrix.platforms }}
- name: Push experimental
if: ${{ github.ref == 'refs/heads/experimental' }}
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
file: docker/${{ matrix.container }}/Dockerfile.build
@ -137,7 +137,7 @@ jobs:
tags: bpatrik/pigallery2:experimental-${{ matrix.container }}
- name: Push nightly on new master commit
if: ${{ startsWith(steps.vars.outputs.type , 'head') && !github.event.issue.pull_request && github.ref == 'refs/heads/master' }}
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
file: docker/${{ matrix.container }}/Dockerfile.build
@ -146,7 +146,7 @@ jobs:
tags: bpatrik/pigallery2:nightly-${{ matrix.container }}
- name: Push release on new Tag
if: ${{ startsWith(steps.vars.outputs.type , 'tag') && !github.event.issue.pull_request && matrix.container != 'debian-buster'}}
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
file: docker/${{ matrix.container }}/Dockerfile.build
@ -158,7 +158,7 @@ jobs:
bpatrik/pigallery2:latest-${{ matrix.container }}
- name: Push latest on new Tag
if: ${{ startsWith(steps.vars.outputs.type , 'tag') && !github.event.issue.pull_request && matrix.container == 'debian-buster'}}
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
file: docker/${{ matrix.container }}/Dockerfile.build