add building workflow
This commit is contained in:
parent
0d4079cd47
commit
53bba5337d
36
.gitea/workflows/building.yaml
Normal file
36
.gitea/workflows/building.yaml
Normal file
@ -0,0 +1,36 @@
|
||||
name: Building base images
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'build*'
|
||||
|
||||
jobs:
|
||||
building-base-images:
|
||||
runs-on: alt-sisyphus
|
||||
steps:
|
||||
- name: Update apt
|
||||
uses: actions/init-alt-env@v1
|
||||
- name: Install requires
|
||||
run: |
|
||||
echo "apt-get install -y python3-module-jinja2 json podman jq wget curl"
|
||||
apt-get install -y python3-module-jinja2 json podman jq wget curl
|
||||
echo "apt-get install -y qemu-user-static-binfmt-aarch64 qemu-user-static-binfmt-riscv qemu-user-static-binfmt-loongarch"
|
||||
apt-get install -y qemu-user-static-binfmt-aarch64 qemu-user-static-binfmt-riscv qemu-user-static-binfmt-loongarch
|
||||
- name: Check workspace
|
||||
run: |
|
||||
repourl=$(echo $GU | cut -d '/' -f 3)
|
||||
echo "URL=$repourl" >> ${GITHUB_ENV}
|
||||
echo "URL=$repourl"
|
||||
- name: Check out current repo
|
||||
uses: actions/checkout@v4
|
||||
- name: Login podman gitea
|
||||
run: |
|
||||
echo "podman login ${{ env.URL }}"
|
||||
podman login --username $P_USER --password $P_PASS ${{ env.URL }}
|
||||
env:
|
||||
P_USER: ${{ secrets.PODMAN_USER }}
|
||||
P_PASS: ${{ secrets.PODMAN_PASS }}
|
||||
- name: Run building script
|
||||
id: build-script
|
||||
run: |
|
||||
${{ gitea.workspace }}/build.py
|
Loading…
Reference in New Issue
Block a user