2024-04-26 12:31:10 +00:00
|
|
|
name: Build
|
|
|
|
run-name: ${{ gitea.actor }} Builder
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
2023-10-06 21:31:38 +00:00
|
|
|
jobs:
|
2024-04-26 12:31:10 +00:00
|
|
|
BuildAndDeploy:
|
2024-04-26 12:31:29 +00:00
|
|
|
runs-on: ubuntu-latest
|
2024-04-26 12:31:10 +00:00
|
|
|
container:
|
|
|
|
image: git.php.fail/lubiana/container/hugogit
|
2024-04-26 12:35:53 +00:00
|
|
|
env:
|
|
|
|
RUNNER_TOOL_CACHE: /toolcache
|
2024-04-26 12:31:10 +00:00
|
|
|
steps:
|
|
|
|
- name: Manually checkout
|
|
|
|
env:
|
|
|
|
REPO: '${{ github.repository }}'
|
|
|
|
TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
|
|
|
GIT_SERVER: 'git.php.fail'
|
|
|
|
run: |
|
2024-04-26 12:32:07 +00:00
|
|
|
git clone --branch $GITHUB_REF_NAME https://${TOKEN}@${GIT_SERVER}/${REPO}.git .
|
2024-04-26 12:31:10 +00:00
|
|
|
git fetch
|
2024-04-26 12:33:04 +00:00
|
|
|
git checkout ${{ github.head_ref }}
|
2024-04-26 12:33:54 +00:00
|
|
|
- name: list
|
2024-04-26 12:36:21 +00:00
|
|
|
run: |
|
|
|
|
ls
|
2024-04-26 12:37:10 +00:00
|
|
|
pwd
|
2024-04-26 12:39:07 +00:00
|
|
|
ls /opt
|
|
|
|
echo 'hallo' >> /opt/hostedtoolcache/lol.txt
|
|
|
|
cat /opt/hostedtoolcache/lol.txt
|