This commit is contained in:
45
.gitea/workflows/base.yaml
Normal file
45
.gitea/workflows/base.yaml
Normal file
@@ -0,0 +1,45 @@
|
||||
name: Build base containers
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
paths:
|
||||
- "base.Containerfile"
|
||||
- "web-base.Containerfile"
|
||||
- "config/"
|
||||
- "scripts/build-host-spawn.sh"
|
||||
- ".gitea/workflows/base.yaml"
|
||||
|
||||
jobs:
|
||||
fedora-build:
|
||||
runs-on: job-latest
|
||||
steps:
|
||||
- name: Clone repo
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- 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 Base container
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: ./base.Containerfile
|
||||
push: true
|
||||
tags: git.plabble.org/Maurice/devc-base:${{ github.ref_name }}
|
||||
build-args: TAG=${{ github.ref_name }}
|
||||
outputs: type=image,oci-mediatypes=true,compression=zstd,compression-level=3,force-compression=true
|
||||
|
||||
- name: Build and push Web Base container
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: ./web-base.Containerfile
|
||||
push: true
|
||||
tags: git.plabble.org/Maurice/devc-web-base:${{ github.ref_name }}
|
||||
build-args: TAG=${{ github.ref_name }}
|
||||
outputs: type=image,oci-mediatypes=true,compression=zstd,compression-level=3,force-compression=true
|
||||
Reference in New Issue
Block a user