Updated build
This commit is contained in:
parent
61fbcdd5a0
commit
e48bb5bf7c
@ -6,12 +6,13 @@ on:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
on-push-deploy_sh-edraft:
|
||||
build:
|
||||
runs-on: [dobby.sh-edraft.de, ubuntu-latest]
|
||||
container: catthehacker/ubuntu:act-latest
|
||||
steps:
|
||||
- name: Set up Docker Buildx
|
||||
uses: https://github.com/docker/setup-buildx-action@v3
|
||||
- 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
|
||||
@ -19,6 +20,19 @@ jobs:
|
||||
token: ${{ secrets.CI_ACCESS_TOKEN }}
|
||||
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
|
||||
uses: https://github.com/docker/login-action@v1
|
||||
with:
|
||||
@ -26,9 +40,5 @@ jobs:
|
||||
username: ${{ secrets.CI_USERNAME }}
|
||||
password: ${{ secrets.CI_ACCESS_TOKEN }}
|
||||
|
||||
- name: Build and push
|
||||
uses: https://github.com/docker/build-push-action@v2
|
||||
with:
|
||||
push: true
|
||||
tags: sh-edraft.de/act-runner:latest
|
||||
|
||||
- name: Push image
|
||||
run: docker push git.sh-edraft.de/sh-edraft.de/act-runner:latest
|
||||
|
Loading…
Reference in New Issue
Block a user