1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2025-01-14 14:43:17 +08:00

fixing workflow version tags for:

"##[warning]Input 'version' has been deprecated with message: The version input will not be supported after May 30, 2020. Use buildx-version instead"
This commit is contained in:
Patrik J. Braun 2020-09-06 14:58:02 +02:00
parent 6f4d1a071b
commit 373b13f53d

View File

@ -10,11 +10,11 @@ on:
jobs: jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
node-version: [10.x, 12.x, 13.x] node-version: [10.x, 12.x, 13.x]
services: services:
mariadb: mariadb:
image: mariadb:latest image: mariadb:latest
@ -34,15 +34,15 @@ jobs:
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
- name: Verify MariaDB connection - name: Verify MariaDB connection
env: env:
PORT: ${{ job.services.mariadb.ports[3306] }} PORT: ${{ job.services.mariadb.ports[3306] }}
run: | run: |
while ! mysqladmin ping -h"127.0.0.1" -P"$PORT" --silent; do while ! mysqladmin ping -h"127.0.0.1" -P"$PORT" --silent; do
sleep 1 sleep 1
done done
- name: npm install, build, and test - name: npm install, build, and test
run: | run: |
npm ci npm ci
@ -55,7 +55,7 @@ jobs:
MYSQL_PORT: ${{ job.services.mariadb.ports[3306] }} MYSQL_PORT: ${{ job.services.mariadb.ports[3306] }}
PORT: 35000 PORT: 35000
CI: true CI: true
create-release: create-release:
runs-on: [ubuntu-latest] runs-on: [ubuntu-latest]
needs: [test] needs: [test]
@ -98,7 +98,7 @@ jobs:
id: buildx id: buildx
uses: crazy-max/ghaction-docker-buildx@v1 uses: crazy-max/ghaction-docker-buildx@v1
with: with:
version: latest buildx-version: latest
- -
name: Available platforms name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }} run: echo ${{ steps.buildx.outputs.platforms }}
@ -154,7 +154,7 @@ jobs:
id: buildx id: buildx
uses: crazy-max/ghaction-docker-buildx@v1 uses: crazy-max/ghaction-docker-buildx@v1
with: with:
version: latest buildx-version: latest
- -
name: Available platforms name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }} run: echo ${{ steps.buildx.outputs.platforms }}