added code-server custom image with ansible and docker and CI/CD
All checks were successful
deploy host / build-runner (push) Successful in 8s

This commit is contained in:
2024-09-01 13:42:02 +01:00
parent a6d425b84a
commit f1843c303f
3 changed files with 38 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
name: deploy host
on:
push:
paths:
- "services/code-server/*"
- ".gitea/workflows/**code-server**.yml"
jobs:
build-runner:
runs-on: homesrv01
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: build git runner
shell: bash
run: |
docker build ${{gitea.workspace}}/services/code-server --tag myInfra/code-server

View File

@@ -63,7 +63,7 @@ version: '3'
services:
code-server:
container_name: code
image: lscr.io/linuxserver/code-server:latest
image: myInfra/code-server:latest
environment:
- PUID=0
- PGID=0

View File

@@ -0,0 +1,13 @@
FROM lscr.io/linuxserver/code-server:latest
RUN apt-get update -y
RUN apt-get update -y \
&& apt install -y software-properties-common ca-certificates curl software-properties-common \
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" \
&& add-apt-repository --yes --update ppa:ansible/ansible \
&& apt-get update -y \
&& apt-get install -y ansible \
&& apt-get install -y docker-ce