added code-server custom image with ansible and docker and CI/CD
All checks were successful
deploy host / build-runner (push) Successful in 8s
All checks were successful
deploy host / build-runner (push) Successful in 8s
This commit is contained in:
24
.gitea/workflows/services.code-server.yml
Normal file
24
.gitea/workflows/services.code-server.yml
Normal 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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
13
services/code-server/Dockerfile
Normal file
13
services/code-server/Dockerfile
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user