Files
sandbox/.gitea/workflows/demo.yaml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 21: mapping key "run" already defined at line 20 line 22: mapping key "run" already defined at line 20 line 22: mapping key "run" already defined at line 21 line 47: mapping key "run" already defined at line 46

48 lines
1.1 KiB
YAML

name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
build:
runs-on: debian12
container:
image: git.vxbard.net/homeburger/bard-cpp-builder:1.0
steps:
- name: clone
uses: actions/checkout@v3
- name: container-setup
run: |
echo "10.145.164.106 git.vxbard.net" >> /etc/hosts
- name: build
run: echo "building..."
run: echo "10.145.164.106 git.vxbard.net" >> /etc/hosts
run: g++ -o app main.cpp
- name: upload
uses: actions/upload-artifact@v3
with:
name: build-artifact
path: app
execute:
runs-on: debian12
container:
image: git.vxbard.net/homeburger/bard-cpp-builder:1.0
needs: build
steps:
- name: container-setup
run: |
echo "10.145.164.106 git.vxbard.net" >> /etc/hosts
- name: download
uses: actions/download-artifact@v3
with:
name: build-artifact
- name: execute
run: chmod +x app
run: ./app