38 lines
1.3 KiB
YAML
38 lines
1.3 KiB
YAML
name: Build FEX Bedrock Stack
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "0 4 * * 1"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: [docker]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install docker CLI
|
|
run: |
|
|
apt-get update -qq && apt-get install -y -qq docker.io >/dev/null
|
|
|
|
- name: "Build image (cache-busted: fresh FEX PPA + fresh Ubuntu rootfs)"
|
|
run: |
|
|
docker pull ubuntu:24.04
|
|
DOCKER_BUILDKIT=1 docker build --build-arg EMULATOR=fex --build-arg CACHE_BUST=$(date +%s) \
|
|
-t git.niklashmotion.art/hermes/fex-bedrock-stack:latest \
|
|
-t git.niklashmotion.art/hermes/fex-bedrock-stack:$(date +%Y%m%d) .
|
|
|
|
- name: Push to Gitea Registry
|
|
run: |
|
|
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.niklashmotion.art -u Hermes --password-stdin
|
|
docker push --all-tags git.niklashmotion.art/hermes/fex-bedrock-stack
|
|
docker logout git.niklashmotion.art
|
|
|
|
- name: Sync local tag (no container restart)
|
|
run: |
|
|
docker pull git.niklashmotion.art/hermes/fex-bedrock-stack:latest
|
|
docker tag git.niklashmotion.art/hermes/fex-bedrock-stack:latest fex-bedrock-stack:latest
|
|
|
|
- name: Cleanup
|
|
run: docker image prune -f
|