31 lines
707 B
YAML
31 lines
707 B
YAML
|
name: Build code-server
|
||
|
run-name: Build code-server
|
||
|
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
|