devcontainer/.gitea/workflows/ci.yaml

33 lines
849 B
YAML
Raw Normal View History

2024-09-28 16:00:00 +00:00
name: Container build
2024-09-29 09:29:50 +00:00
on:
push:
schedule:
- cron: '0 16 * * FRI'
2024-09-28 16:00:00 +00:00
jobs:
container-build:
2024-10-19 10:18:30 +00:00
runs-on: plabble-sprinter
2024-09-28 16:00:00 +00:00
if: gitea.ref == 'refs/heads/main'
2024-09-28 17:48:47 +00:00
env:
RUNNER_TOOL_CACHE: /toolcache
2024-09-28 16:00:00 +00:00
steps:
- name: Clone repo
uses: actions/checkout@v4
- name: Set up BuildX
uses: docker/setup-buildx-action@v2
with:
endpoint: 'unix:///var/run/docker.sock'
- name: Login to Registry
uses: docker/login-action@v3
with:
registry: git.plabble.org
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
2024-09-28 16:00:00 +00:00
with:
context: .
file: ./Containerfile
push: true
2024-09-28 17:48:47 +00:00
tags: git.plabble.org/job79/dev:latest