-
Notifications
You must be signed in to change notification settings - Fork 15
47 lines (37 loc) · 1.07 KB
/
update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Push Updates
on:
workflow_dispatch:
jobs:
get-versions:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Get Versions
id: script
run: python3 dev/versionchecker.py
outputs:
matrix: ${{ steps.script.outputs.matrix }}
build-versions:
needs: get-versions
if: ${{ fromJSON(needs.get-versions.outputs.matrix).include[0] != null }}
strategy:
matrix: ${{ fromJSON(needs.get-versions.outputs.matrix) }}
permissions:
contents: read
packages: write
uses: NathanVaughn/reusable-actions/.github/workflows/docker-build-push.yml@main
with:
platform: linux/amd64
tags: ${{ matrix.tags }}
context: docker
dockerfile: docker/${{ matrix.dockerfile }}
secrets:
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}