docker-static/.github/workflows/trial.yml

52 lines
1.2 KiB
YAML
Raw Normal View History

2022-11-01 20:29:02 +01:00
name: trial
on:
workflow_dispatch:
push:
# push:
# tags:
# - "v*.*.*"
jobs:
2022-11-01 20:44:58 +01:00
tags:
runs-on: ubuntu-latest
steps:
2022-11-01 20:46:05 +01:00
- uses: actions/checkout@v3
2022-11-01 20:44:58 +01:00
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm i
- run: node fetch.mjs
2022-11-01 20:29:02 +01:00
build:
2022-11-01 20:47:56 +01:00
runs-on: ubuntu-latest
needs: tags
2022-11-01 20:29:02 +01:00
strategy:
matrix:
2022-11-01 20:44:58 +01:00
${{fromJson(needs.tags.outputs.matrix)}}
# include:
# - tag: 1.20.2
# version: 1.20.2
2022-11-01 20:29:02 +01:00
steps:
2022-11-01 20:46:05 +01:00
- uses: actions/checkout@v3
2022-11-01 20:29:02 +01:00
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
install: true
# - name: Login to DockerHub
# uses: docker/login-action@v1
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
# platforms: linux/amd64,linux/arm64
platforms: linux/amd64
push: false
build-args: NGINX=${{ matrix.version }}
tags: ${{ matrix.tag }}