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
|
2022-11-01 20:54:39 +01:00
|
|
|
outputs:
|
|
|
|
matrix: ${{ steps.fetcher.outputs.matrix }}
|
2022-11-01 20:44:58 +01:00
|
|
|
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
|
2022-11-01 20:54:39 +01:00
|
|
|
- id: fetcher
|
|
|
|
run: node fetch.mjs
|
2022-11-01 20:44:58 +01:00
|
|
|
|
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:
|
2022-11-01 20:52:37 +01:00
|
|
|
matrix: ${{fromJson(needs.tags.outputs.matrix)}}
|
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 }}
|