2023-01-16 08:38:29 +13:00
|
|
|
name: "amd64 images"
|
2022-01-30 11:38:03 +13:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- 'v*'
|
|
|
|
|
|
|
|
env:
|
|
|
|
REGISTRY: ghcr.io
|
|
|
|
IMAGE_NAME: m1k1o/neko
|
2023-01-16 08:38:29 +13:00
|
|
|
TAG_PREFIX: ""
|
|
|
|
BASE_DOCKERFILE: Dockerfile
|
|
|
|
PLATFORMS: linux/amd64
|
2022-01-30 11:38:03 +13:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-base:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
#
|
|
|
|
# do not run on forks
|
|
|
|
#
|
|
|
|
if: github.repository_owner == 'm1k1o'
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
-
|
|
|
|
name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v1
|
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
-
|
|
|
|
name: Extract metadata (tags, labels) for Docker
|
|
|
|
uses: docker/metadata-action@v3
|
|
|
|
id: meta
|
|
|
|
with:
|
2023-01-16 08:38:29 +13:00
|
|
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/${{ env.TAG_PREFIX }}base
|
2022-01-30 11:38:03 +13:00
|
|
|
tags: |
|
|
|
|
type=semver,pattern={{version}}
|
|
|
|
type=semver,pattern={{major}}.{{minor}}
|
|
|
|
type=semver,pattern={{major}}
|
|
|
|
type=sha,format=long
|
|
|
|
-
|
|
|
|
name: Log in to the Container registry
|
|
|
|
uses: docker/login-action@v1
|
|
|
|
with:
|
|
|
|
registry: ${{ env.REGISTRY }}
|
|
|
|
username: ${{ github.actor }}
|
|
|
|
password: ${{ secrets.GHCR_ACCESS_TOKEN }}
|
|
|
|
-
|
|
|
|
name: Build and push
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
context: ./
|
2023-01-16 08:38:29 +13:00
|
|
|
file: .docker/base/${{ env.BASE_DOCKERFILE }}
|
|
|
|
platforms: ${{ env.PLATFORMS }}
|
2022-01-30 11:38:03 +13:00
|
|
|
push: true
|
|
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
|
|
labels: ${{ steps.meta.outputs.labels }}
|
|
|
|
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
#
|
|
|
|
# do not run on forks
|
|
|
|
#
|
|
|
|
if: github.repository_owner == 'm1k1o'
|
|
|
|
needs: [ build-base ]
|
|
|
|
strategy:
|
2022-06-02 09:04:28 +12:00
|
|
|
# Will build all images even if some fail.
|
2022-01-30 11:38:03 +13:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- tag: firefox
|
|
|
|
- tag: chromium
|
|
|
|
- tag: google-chrome
|
|
|
|
- tag: ungoogled-chromium
|
|
|
|
- tag: microsoft-edge
|
|
|
|
- tag: brave
|
2022-06-19 07:27:09 +12:00
|
|
|
- tag: vivaldi
|
2022-09-20 13:56:04 +12:00
|
|
|
- tag: opera
|
2022-01-30 11:38:03 +13:00
|
|
|
- tag: tor-browser
|
2022-03-19 06:25:46 +13:00
|
|
|
- tag: remmina
|
2022-01-30 11:38:03 +13:00
|
|
|
- tag: vlc
|
|
|
|
- tag: xfce
|
2023-03-09 05:49:31 +13:00
|
|
|
- tag: kde
|
2022-01-30 11:38:03 +13:00
|
|
|
env:
|
|
|
|
TAG_NAME: ${{ matrix.tag }}
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
-
|
|
|
|
name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v1
|
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
-
|
|
|
|
name: Extract metadata (tags, labels) for Docker
|
|
|
|
uses: docker/metadata-action@v3
|
|
|
|
id: meta
|
|
|
|
with:
|
2023-01-16 08:38:29 +13:00
|
|
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/${{ env.TAG_PREFIX }}${{ env.TAG_NAME }}
|
2022-01-30 11:38:03 +13:00
|
|
|
tags: |
|
|
|
|
type=semver,pattern={{version}}
|
|
|
|
type=semver,pattern={{major}}.{{minor}}
|
|
|
|
type=semver,pattern={{major}}
|
2023-01-16 08:38:29 +13:00
|
|
|
type=sha,format=long
|
2022-01-30 11:38:03 +13:00
|
|
|
-
|
|
|
|
name: Log in to the Container registry
|
|
|
|
uses: docker/login-action@v1
|
|
|
|
with:
|
|
|
|
registry: ${{ env.REGISTRY }}
|
|
|
|
username: ${{ github.actor }}
|
|
|
|
password: ${{ secrets.GHCR_ACCESS_TOKEN }}
|
|
|
|
-
|
|
|
|
name: Build and push
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
context: .docker/${{ env.TAG_NAME }}
|
|
|
|
platforms: ${{ env.PLATFORMS }}
|
|
|
|
push: true
|
|
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
|
|
labels: ${{ steps.meta.outputs.labels }}
|
|
|
|
build-args: |
|
2023-01-16 08:38:29 +13:00
|
|
|
BASE_IMAGE=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/${{ env.TAG_PREFIX }}base:sha-${{ github.sha }}
|