2021-06-14 00:13:19 +12:00
|
|
|
name: "CI for builds"
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-10-17 07:29:22 +13:00
|
|
|
branches: [ master ]
|
2021-06-14 00:13:19 +12:00
|
|
|
#
|
|
|
|
# Run this action periodically to keep browsers up-to-date
|
|
|
|
# even if there is no activity in this repo.
|
|
|
|
#
|
|
|
|
schedule:
|
|
|
|
- cron: "43 2 * * 1"
|
|
|
|
|
|
|
|
env:
|
|
|
|
DOCKER_IMAGE: m1k1o/neko
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-base:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
#
|
|
|
|
# do not run on forks
|
|
|
|
#
|
|
|
|
if: github.repository_owner == 'm1k1o'
|
|
|
|
steps:
|
|
|
|
- name: Check Out Repo
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Login to Docker Hub
|
|
|
|
run: |
|
|
|
|
docker login --username "${DOCKER_USERNAME}" --password-stdin "${DOCKER_REGISTRY}" <<< "${DOCKER_TOKEN}"
|
|
|
|
env:
|
|
|
|
DOCKER_REGISTRY: ${{ secrets.DOCKER_REGISTRY }}
|
|
|
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
|
|
|
|
|
|
|
|
- name: Build base
|
|
|
|
run: |
|
2021-11-28 02:23:33 +13:00
|
|
|
BUILD_IMAGE=${DOCKER_IMAGE} .docker/build ${DOCKER_TAG}
|
2021-06-14 00:13:19 +12:00
|
|
|
docker push ${DOCKER_IMAGE}:${DOCKER_TAG}
|
|
|
|
env:
|
|
|
|
DOCKER_TAG: base
|
|
|
|
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
#
|
|
|
|
# do not run on forks
|
|
|
|
#
|
|
|
|
if: github.repository_owner == 'm1k1o'
|
|
|
|
needs: [ build-base ]
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-03-19 06:25:46 +13:00
|
|
|
tags: [ firefox, chromium, google-chrome, ungoogled-chromium, microsoft-edge, brave, tor-browser, vncviewer, remmina, vlc, xfce ]
|
2021-06-14 00:13:19 +12:00
|
|
|
env:
|
|
|
|
DOCKER_TAG: ${{ matrix.tags }}
|
|
|
|
steps:
|
|
|
|
- name: Check Out Repo
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Login to Docker Hub
|
|
|
|
run: |
|
|
|
|
docker login --username "${DOCKER_USERNAME}" --password-stdin "${DOCKER_REGISTRY}" <<< "${DOCKER_TOKEN}"
|
|
|
|
env:
|
|
|
|
DOCKER_REGISTRY: ${{ secrets.DOCKER_REGISTRY }}
|
|
|
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
|
|
|
|
|
|
|
|
- name: Build container
|
|
|
|
run: |
|
2021-11-28 02:23:33 +13:00
|
|
|
BUILD_IMAGE=${DOCKER_IMAGE} .docker/build ${DOCKER_TAG}
|
2021-06-14 00:13:19 +12:00
|
|
|
docker push ${DOCKER_IMAGE}:${DOCKER_TAG}
|
|
|
|
|
|
|
|
- name: Push latest tag
|
|
|
|
if: ${{ matrix.tags == 'firefox' }}
|
|
|
|
run: |
|
|
|
|
docker pull ${DOCKER_IMAGE}:${DOCKER_TAG}
|
|
|
|
docker tag ${DOCKER_IMAGE}:${DOCKER_TAG} ${DOCKER_IMAGE}:latest
|
|
|
|
docker push ${DOCKER_IMAGE}:latest
|