Updated build workflow
This commit is contained in:
parent
2efc1eecaa
commit
7bae27612f
@ -6,8 +6,8 @@ on:
|
|||||||
- master
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
on-push-deploy_sh-edraft:
|
build:
|
||||||
runs-on: [gismo.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: Setup docker
|
- name: Setup docker
|
||||||
@ -20,11 +20,19 @@ jobs:
|
|||||||
token: ${{ secrets.CI_ACCESS_TOKEN }}
|
token: ${{ secrets.CI_ACCESS_TOKEN }}
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- name: Build code-server image
|
- name: Build act-runner image
|
||||||
run: |
|
run: |
|
||||||
docker image prune -f
|
docker image prune -f
|
||||||
chmod +x build
|
docker build -t git.sh-edraft.de/sh-edraft.de/code-server:latest .
|
||||||
./build
|
|
||||||
|
on-push-deploy_sh-edraft:
|
||||||
|
needs: build
|
||||||
|
runs-on: [gismo.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: Deploy Stack to sh-edraft.de
|
- name: Deploy Stack to sh-edraft.de
|
||||||
uses: https://github.com/kgierke/portainer-stack-deployment@v1
|
uses: https://github.com/kgierke/portainer-stack-deployment@v1
|
||||||
|
@ -2,7 +2,7 @@ version: "3.7"
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
code_server:
|
code_server:
|
||||||
image: sh-edraft.de/code-server:latest
|
image: git.sh-edraft.de/sh-edraft.de/code-server:latest
|
||||||
networks:
|
networks:
|
||||||
- reverse_proxy
|
- reverse_proxy
|
||||||
volumes:
|
volumes:
|
||||||
|
Loading…
Reference in New Issue
Block a user