devcontainer/.gitea/workflows/ci.yaml

29 lines
811 B
YAML
Raw Normal View History

2024-09-28 16:00:00 +00:00
name: Container build
on: [ push ]
jobs:
container-build:
runs-on: ubuntu-latest
if: gitea.ref == 'refs/heads/main'
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:
push: true
2024-09-28 17:48:47 +00:00
file: ./Containerfile
tags: git.plabble.org/job79/dev:latest
cache-from: type=gha
cache-to: type=gha,mode=max