Pause automated builds while updating the image, and improve VNC startup/logging with a one-way clipboard bridge for reliable browser sync.
30 lines
800 B
Plaintext
30 lines
800 B
Plaintext
name: Mirror Alpine Image
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 3 * * 0' # Weekly on Sunday at 3 AM
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
mirror:
|
|
runs-on: linux-amd64
|
|
container:
|
|
image: git.nicola.sh/public/alpine:latest
|
|
steps:
|
|
- name: Install Docker CLI
|
|
run: |
|
|
apk add --no-cache docker-cli
|
|
|
|
- name: Pull Alpine from Docker Hub
|
|
run: |
|
|
docker pull alpine:latest
|
|
|
|
- name: Login to Gitea Container Registry
|
|
run: |
|
|
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login git.nicola.sh -u "${{ secrets.REGISTRY_USERNAME }}" --password-stdin
|
|
|
|
- name: Tag and push to Gitea registry
|
|
run: |
|
|
docker tag alpine:latest git.nicola.sh/public/alpine:latest
|
|
docker push git.nicola.sh/public/alpine:latest
|