Add apko container definition, build workflow, and gitignore. Added container helper base image
This commit is contained in:
38
.gitea/workflows/build-base-apps.yml
Normal file
38
.gitea/workflows/build-base-apps.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
name: "Build base apps"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "main"
|
||||
paths:
|
||||
- "applications/**"
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
REGISTRY: "git.battlestati.one"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: linux_amd64
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- section: "app_base"
|
||||
name: "container_helper"
|
||||
|
||||
steps:
|
||||
- name: "Checkout code"
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: "Login into docker registry"
|
||||
run: echo "${{ secrets.RELEASE_TOKEN }}" | docker login ghcr.io -u ${{ gitea.actor }} --password-stdin
|
||||
|
||||
- name: "Build apko image"
|
||||
run: |
|
||||
docker run \
|
||||
-v ~/.docker/config.json:/root/.docker/config.json:ro \
|
||||
-v "$PWD":/work \
|
||||
cgr.dev/chainguard/apko publish \
|
||||
${{ matrix.section }}/${{ matrix.name }}/apko.yml \
|
||||
${{ env.REGISTRY }}/moonlight-panel/${{ matrix.section }}/${{ matrix.name }}
|
||||
Reference in New Issue
Block a user