pika-first-setup/.github/workflows/github-pushback.yml

33 lines
643 B
YAML
Raw Normal View History

2024-12-04 19:51:32 +03:00
name: Github Push back to gitea
2024-12-04 19:49:35 +03:00
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/pikaos-linux/pikaos-builder:nestv3
volumes:
- /proc:/proc
options: --privileged -it
steps:
2024-12-04 23:34:42 +03:00
2024-12-04 23:36:20 +03:00
- uses: actions/checkout@v3
2024-12-04 23:34:42 +03:00
- name: Is github check
run: echo "${PWD##*/}" | grep "gitea-pika-first-setup" || exit 1
2024-12-04 23:55:46 +03:00
- name: Set up SSH
uses: webfactory/ssh-agent@v0.5.3
2024-12-04 23:34:42 +03:00
with:
2024-12-04 23:55:46 +03:00
ssh-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
2024-12-04 23:34:42 +03:00
2024-12-04 20:51:52 +03:00
- name: Run
2024-12-04 20:45:54 +03:00
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
2024-12-04 23:43:59 +03:00
run: ./.github/github_pushback.sh