Workflow
Some checks failed
Build and Push / build-and-push (push) Has been cancelled

This commit is contained in:
Adam Štrauch 2025-04-21 12:58:06 +02:00
parent 3f0d6fd6c5
commit bf89632e26
Signed by: cx
GPG key ID: 7262DAFE292BCE20
2 changed files with 31 additions and 0 deletions

30
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: Build and Push
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the repository
- name: Checkout code
uses: actions/checkout@v3
# Step 2: Log in to Forgejo's registry
- name: Log in to local registry
env:
INSTANCE: gitea.ceperka.net
USERNAME: cx
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login $INSTANCE -u "cx" --password-stdin
# Step 3: Build the project
- name: Build the project
run: task build
# Step 4: Push the build
- name: Push the build
run: task push

View file

@ -18,6 +18,7 @@ RUN useradd cx -u 1000 -g cx -d /var/home/cx -s /usr/bin/fish
ADD uni.sh /usr/bin/podman
ADD podman-compose.sh /usr/bin/podman-compose
ADD uni.sh /usr/bin/docker
ADD uni.sh /usr/bin/xdg-open
# Incus
ADD uni.sh /usr/bin/incus