.forgejo/workflows/demo.yml aktualisiert
Some checks are pending
Build / BuildAndDeploy (push) Waiting to run
Some checks are pending
Build / BuildAndDeploy (push) Waiting to run
This commit is contained in:
parent
856917dadc
commit
2aefc244f5
1 changed files with 21 additions and 16 deletions
|
@ -1,17 +1,22 @@
|
||||||
on: [push]
|
name: Build
|
||||||
|
run-name: ${{ gitea.actor }} Builder
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ls:
|
BuildAndDeploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: git.php.fail/lubiana/container/php
|
image: git.php.fail/lubiana/container/hugogit
|
||||||
- name: Manually checkout
|
steps:
|
||||||
env:
|
- name: Manually checkout
|
||||||
REPO: '${{ github.repository }}'
|
env:
|
||||||
TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
REPO: '${{ github.repository }}'
|
||||||
GIT_SERVER: 'git.php.fail'
|
TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
- run: |
|
GIT_SERVER: 'git.php.fail'
|
||||||
git clone --branch $GITHUB_REF_NAME https://${TOKEN}@${GIT_SERVER}${REPO}.git .
|
run: |
|
||||||
git fetch
|
git clone --branch $GITHUB_REF_NAME https://${TOKEN}@${GIT_SERVER}${REPO}.git .
|
||||||
git checkout ${{ github.head_ref }}
|
git fetch
|
||||||
- run: ls
|
git checkout ${{ github.head_ref }}
|
||||||
- run: env | sort
|
|
Loading…
Reference in a new issue