Updated build workflow
Some checks failed
Deploy on push / build (push) Successful in 9m23s
Deploy on push / on-push-deploy_sh-edraft (push) Failing after 19s

This commit is contained in:
Sven Heidemann 2023-12-09 19:12:42 +00:00
parent 2efc1eecaa
commit 7bae27612f
3 changed files with 14 additions and 9 deletions

View File

@ -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

3
build
View File

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

View File

@ -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: