fixbluesky/.forgejo/workflows/devel.yml
Rose 59350d61f3
Some checks failed
Build Docker Image / build (push) Failing after 1m5s
👷 added docker image building (hopefully)
2024-10-16 10:14:05 -05:00

48 lines
1.4 KiB
YAML

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 }}