Updated build
This commit is contained in:
parent
61fbcdd5a0
commit
e48bb5bf7c
@ -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
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user