name: "Build" on: push: branches: - main jobs: build: runs-on: "docker" container: image: "code.forgejo.org/oci/node:22-alpine" steps: - name: "Checkout" uses: "https://code.forgejo.org/actions/checkout@v4" - name: "Install Docker" run: | apk add docker - name: "Login to the container registry" uses: "https://code.forgejo.org/docker/login-action@v3" with: registry: "git.moritzruth.de" username: "moritzruth" password: "${{ secrets.PACKAGES_TOKEN }}" - name: "Build and push the container image" uses: "https://code.forgejo.org/docker/build-push-action@v6" with: context: "." file: "./Containerfile" push: true tags: "git.moritzruth.de/${{ github.repository }}:latest"