diff --git a/.forgejo/workflows/devel.yml b/.forgejo/workflows/devel.yml new file mode 100644 index 0000000..4692b68 --- /dev/null +++ b/.forgejo/workflows/devel.yml @@ -0,0 +1,48 @@ +name: Build Docker Image +on: + push: + branches: [devel] +jobs: + build: + runs-on: ubuntu-latest + container: + image: node:21-alpine + steps: + - name: Setup Node + run: | + apk add --no-cache libc6-compat + apk update + yarn set version canary + yarn config set nodeLinker node-modules + - name: Checkout + uses: actions/checkout@v4 + - name: Run Node CI Stuff + run: | + yarn install --immutable + yarn lint + - name: Docker Metadata + id: metadata + uses: docker/metadata-action@v5 + with: + images: git.thornbush.dev/rose/fixbluesky + tags: | + type=ref,event=branch + type=sha,prefix= + type=edge,branch=devel + - name: Docker Buildx + uses: https://code.forgejo.org/docker/setup-buildx-action@v3 + - name: Login to Docker Registry + if: github.event_name != 'pull_request' + uses: https://code.forgejo.org/docker/login-action@v3 + with: + registry: git.thornbush.dev + username: ${{github.actor}} + password: ${{secrets.OAUTH_TOKEN}} + - name: Build Image + uses: https://code.forgejo.org/docker/build-push-action@v6 + with: + context: . + file: ./Dockerfile + push: ${{ github.event_name != 'pull_request' }} + tags: ${{ steps.metadata.outputs.tags }} + labels: ${{ steps.metadata.outputs.labels }}