code-server/.gitea/workflows/deploy.yaml
Sven Heidemann c2a116a859
Some checks failed
Deploy on push / deploy-stack (push) Failing after 2s
Deploy on push / build-image (push) Failing after 27s
Fixed deployment problems?
2023-11-27 18:03:39 +01:00

46 lines
1.2 KiB
YAML

name: Deploy on push
run-name: Deploy on push
on:
push:
branches:
- master
jobs:
build-image:
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: Clone Repository
uses: https://github.com/actions/checkout@v3
with:
token: ${{ secrets.CI_ACCESS_TOKEN }}
submodules: true
- name: Shutdown stack
run: docker stack rm code
- name: Build code-server image
run: |
docker image prune -f
chmod +x build
./build
deploy-stack:
runs-on: [dobby.sh-edraft.de, ubuntu-latest]
container: catthehacker/ubuntu:act-latest
steps:
- name: Deploy Stack to sh-edraft.de
uses: https://github.com/kgierke/portainer-stack-deployment@v1
with:
portainer-url: "https://docker.sh-edraft.de"
portainer-username: "gitea_job"
portainer-password: "${{ secrets.docker_job }}"
portainer-endpoint: 2
name: code
file: docker-compose.yml
variables: "{}"