friends-api/.forgejo/workflows/build.yml
Workflow config file is invalid. Please check your config file: Line: 8 Column 5: Failed to match job-factory: Line: 15 Column 9: Failed to match run-step: Line: 16 Column 14: Unknown Variable Access gitea Line: 16 Column 14: Unknown Variable Access gitea Line: 16 Column 14: Unknown Variable Access gitea Line: 16 Column 14: Unknown Variable Access gitea Line: 16 Column 14: Unknown Variable Access gitea Line: 16 Column 14: Unknown Variable Access gitea Line: 15 Column 9: Failed to match regular-step: Line: 16 Column 9: Unknown Property run Line: 8 Column 5: Failed to match workflow-job: Line: 9 Column 5: Unknown Property steps Forgejo Actions YAML Schema validation error
red binder 62b64ca706
Some checks failed
Build friends-api / build-and-push (push) Failing after 1s
switch to bun and add CI, license and readme
2026-08-09 02:15:51 +02:00

23 lines
No EOL
716 B
YAML

name: Build friends-api
on:
push:
jobs:
build-and-push:
runs-on: docker
steps:
- name: Build friends-api binary
run: |
bun install --frozen-lockfile --production
bun build ./index.js --compile --minify --outfile friends-api
- name: Build and push docker image
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login "${{ gitea.server_url }}" -u "${{ gitea.actor }}" --password-stdin
IMAGE_BASE="${{ gitea.server_url }}/${{ gitea.repository }}"
docker build -t "${IMAGE_BASE}:latest" -t "${IMAGE_BASE}:${{ gitea.sha }}" .
docker push "${IMAGE_BASE}:latest"
docker push "${IMAGE_BASE}:${{ gitea.sha }}"