yolks/.github/workflows/docker-publish.yml

81 lines
1.8 KiB
YAML
Raw Normal View History

name: Docker
on:
push:
branches:
- master
jobs:
push:
name: Push
2020-12-15 17:43:25 +01:00
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
image:
- "alpine"
2020-12-15 18:39:54 +01:00
- "alpine-install"
2020-12-29 19:23:21 +01:00
- "fivem"
2021-02-06 18:40:53 +01:00
- "go1.14"
- "go1.15"
- "go1.16"
2020-12-15 18:39:54 +01:00
- "java7"
- "java8"
- "java9"
- "java10"
- "java11"
- "java12"
- "java13"
- "java14"
- "java15"
2021-03-27 03:53:15 +01:00
- "java16"
2021-04-01 17:18:04 +02:00
- "node12"
- "node14"
- "node15"
2021-04-09 23:47:37 +02:00
- "python3.7"
- "python3.8"
- "python3.9"
- "python3.10"
2020-12-15 18:39:54 +01:00
- "source"
- "source-install"
steps:
- name: Code Checkout
uses: actions/checkout@v2
2020-12-15 17:58:56 +01:00
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
2020-12-15 17:01:10 +01:00
- name: Install buildx
2020-12-15 17:19:26 +01:00
uses: docker/setup-buildx-action@v1
2020-12-15 17:25:15 +01:00
with:
2020-12-15 17:26:47 +01:00
version: v0.5.1
2020-12-15 17:50:38 +01:00
buildkitd-flags: --debug
2020-12-15 17:01:10 +01:00
2020-12-15 18:10:17 +01:00
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
2020-12-15 18:25:15 +01:00
- name: Login to Quay
uses: docker/login-action@v1
with:
registry: quay.io
username: matthewp
password: ${{ secrets.QUAY_SECRET }}
2020-12-15 18:15:43 +01:00
- name: Build and Push
2020-12-15 17:54:04 +01:00
uses: docker/build-push-action@v2
with:
2020-12-15 18:11:21 +01:00
context: ./${{ matrix.image }}
file: ./${{ matrix.image }}/Dockerfile
2020-12-15 18:15:43 +01:00
platforms: linux/amd64,linux/arm64
2020-12-15 18:39:09 +01:00
push: true
2020-12-15 18:25:15 +01:00
tags: |
2021-02-25 21:32:38 +01:00
ghcr.io/matthewpi/images:${{ matrix.image }}
2020-12-15 18:28:19 +01:00
quay.io/matthewp/pterodactyl:${{ matrix.image }}