act-runner/.gitea/workflows/deploy.yaml
Sven Heidemann dbf92f1d94
Some checks failed
Deploy on push / on-push-deploy_keksdose (push) Failing after 6s
Deploy on push / on-push-deploy_sh-edraft (push) Has been cancelled
push to registry
2023-12-09 13:56:06 +00:00

55 lines
1.4 KiB
YAML

name: Deploy on push
run-name: Deploy on push
on:
push:
branches:
- master
jobs:
on-push-deploy_sh-edraft:
runs-on: [dobby.sh-edraft.de, ubuntu-latest]
container: catthehacker/ubuntu:act-latest
steps:
- name: Setup docker
uses: https://github.com/papodaca/install-docker-action@main
- run: docker -v
- name: Clone Repository
uses: https://github.com/actions/checkout@v3
with:
token: ${{ secrets.CI_ACCESS_TOKEN }}
submodules: true
- name: Build act-runner image
run: |
docker image prune -f
chmod +x build
./build
on-push-deploy_keksdose:
runs-on: [ksrv01.keksdose-gaming.de, ubuntu-latest]
container: catthehacker/ubuntu:act-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Clone Repository
uses: https://github.com/actions/checkout@v3
with:
token: ${{ secrets.CI_ACCESS_TOKEN }}
submodules: true
- name: Login to registry git.sh-edraft.de
uses: docker/login-action@v1
with:
registry: git.sh-edraft.de
username: ${{ secrets.CI_USERNAME }}
password: ${{ secrets.CI_ACCESS_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
push: true
tags: sh-edraft.de/act-runner:latest