Files
soroushasadi/.gitea/workflows/ci.yml
T
soroush.asadi add78d8460
ci / build (push) Failing after 23s
deploy / deploy (push) Failing after 10m12s
first commit
2026-05-31 12:47:02 +03:30

35 lines
760 B
YAML

name: ci
on:
pull_request:
push:
branches-ignore:
- main
jobs:
build:
runs-on: self-hosted
env:
DOCKER_BUILDKIT: 1
steps:
- name: Checkout
env:
TOKEN: ${{ github.token }}
REF: ${{ github.ref }}
run: |
git init
git remote add origin "${{ github.server_url }}/${{ github.repository }}.git"
git config http.extraheader "Authorization: Bearer ${TOKEN}"
git fetch --depth=1 origin "${REF}"
git checkout FETCH_HEAD
- name: Docker Build Test
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
docker build \
--build-arg NPM_TOKEN="$NPM_TOKEN" \
-t soroushasadi-site:test .