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