ayaports/.forgejo/workflows/build.yaml
Antoine Martin 912702da26
Some checks failed
/ build-x86_64 (pull_request) Successful in 41s
/ deploy (pull_request) Failing after 23s
/ lint (pull_request) Successful in 23s
checkout
2024-08-11 20:38:25 -04:00

37 lines
1.2 KiB
YAML

on:
pull_request:
types: [ assigned, opened, synchronize, reopened ]
jobs:
build-x86_64:
runs-on: x86_64
container:
image: alpinelinux/alpine-gitlab-ci:latest
env:
CI_PROJECT_DIR: ${{ github.workspace }}
CI_DEBUG_BUILD: ${{ runner.debug }}
CI_MERGE_REQUEST_PROJECT_URL: ${{ github.server_url }}/${{ github.repository }}
CI_MERGE_REQUEST_TARGET_BRANCH_NAME: ${{ github.base_ref }}
steps:
- run: doas apk add nodejs git patch
- run: doas wget -P /etc/apk/keys 'https://ayakael.net/pkgs/apk/raw/branch/edge/antoine.martin@protonmail.com-5b3109ad.rsa.pub'
- uses: actions/checkout@v4
with:
fetch-depth: 500
- run: doas patch -d / -p1 -i ${{ github.workspace }}/.forgejo/patches/build.patch
- run: build.sh
- uses: forgejo/upload-artifact@v4
with:
name: package
path: packages
deploy:
runs-on: x86_64
container:
image: alpine:latest
steps:
- uses: actions/checkout@4
- run: apk add nodejs curl findutils
- uses: forgejo/download-artifact@v4
- name: Deploy to repo
run: ${{ github.workspace }}/.forgejo/bin/deploy.sh