Updated build
All checks were successful
Deploy on push / build (push) Successful in 19s
Deploy on push / on-push-deploy_sh-edraft (push) Successful in 59s

This commit is contained in:
Sven Heidemann 2023-12-09 19:05:34 +00:00
parent 61fbcdd5a0
commit e48bb5bf7c
2 changed files with 19 additions and 12 deletions

View File

@ -6,12 +6,13 @@ on:
- master - master
jobs: jobs:
on-push-deploy_sh-edraft: build:
runs-on: [dobby.sh-edraft.de, ubuntu-latest] runs-on: [dobby.sh-edraft.de, ubuntu-latest]
container: catthehacker/ubuntu:act-latest container: catthehacker/ubuntu:act-latest
steps: steps:
- name: Set up Docker Buildx - name: Setup docker
uses: https://github.com/docker/setup-buildx-action@v3 uses: https://github.com/papodaca/install-docker-action@main
- run: docker -v
- name: Clone Repository - name: Clone Repository
uses: https://github.com/actions/checkout@v3 uses: https://github.com/actions/checkout@v3
@ -19,6 +20,19 @@ jobs:
token: ${{ secrets.CI_ACCESS_TOKEN }} token: ${{ secrets.CI_ACCESS_TOKEN }}
submodules: true submodules: true
- name: Build act-runner image
run: |
docker image prune -f
docker build -t git.sh-edraft.de/sh-edraft.de/act-runner:latest .
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: Login to registry git.sh-edraft.de - name: Login to registry git.sh-edraft.de
uses: https://github.com/docker/login-action@v1 uses: https://github.com/docker/login-action@v1
with: with:
@ -26,9 +40,5 @@ jobs:
username: ${{ secrets.CI_USERNAME }} username: ${{ secrets.CI_USERNAME }}
password: ${{ secrets.CI_ACCESS_TOKEN }} password: ${{ secrets.CI_ACCESS_TOKEN }}
- name: Build and push - name: Push image
uses: https://github.com/docker/build-push-action@v2 run: docker push git.sh-edraft.de/sh-edraft.de/act-runner:latest
with:
push: true
tags: sh-edraft.de/act-runner:latest

3
build
View File

@ -1,3 +0,0 @@
#!/bin/bash
docker build -t sh-edraft.de/act-runner:latest .