From bf89632e26206865618e6dd11a8043f649f74745 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20=C5=A0trauch?= Date: Mon, 21 Apr 2025 12:58:06 +0200 Subject: [PATCH] Workflow --- .github/workflows/build.yml | 30 ++++++++++++++++++++++++++++++ Dockerfile | 1 + 2 files changed, 31 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..c562b85 --- /dev/null +++ b/.github/workflows/build.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index 30ab55d..c650e89 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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