31 lines
930 B
YAML
31 lines
930 B
YAML
|
name: Build Servo Image
|
||
|
on:
|
||
|
schedule:
|
||
|
- cron: "0 1 * * *"
|
||
|
push:
|
||
|
paths:
|
||
|
- 'dockerfiles/Dockerfile.servo'
|
||
|
- '.forgejo/workflows/render-servo.yml'
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: vancouver
|
||
|
steps:
|
||
|
- name: Checkout code
|
||
|
uses: actions/checkout@v3.5.3
|
||
|
with:
|
||
|
ref: trunk
|
||
|
- name: Login to Registry
|
||
|
uses: https://github.com/docker/login-action@v3
|
||
|
with:
|
||
|
registry: git.gmem.ca/arch
|
||
|
username: arch
|
||
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||
|
- name: Set up Docker Buildx
|
||
|
uses: https://github.com/docker/setup-buildx-action@v3
|
||
|
with:
|
||
|
buildkitd-config-inline: |
|
||
|
[dns]
|
||
|
nameservers=["1.1.1.1", "1.0.0.1" ]
|
||
|
- name: Docker Build
|
||
|
run: docker build . -f dockerfiles/Dockerfile.servo -t git.gmem.ca/arch/servo:latest -t git.gmem.ca/arch/servo:$(date -I) --push --progress=plain
|