This repository was archived by the owner on Aug 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (51 loc) · 1.67 KB
/
Docker_Code_Server_init.yml
File metadata and controls
54 lines (51 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Docker Code Server Build INIT
on:
workflow_dispatch:
repository_dispatch:
types: [Php_Update_Action]
# watch:
# types: started
jobs:
Build_For_Code_Server_Init:
name: Docker Code Server Build INIT
runs-on: ubuntu-latest
steps:
-
name: Private Actions Checkout
uses: actions/checkout@v5
-
name: Docker Setup QEMU
uses: docker/setup-qemu-action@v3.6.0
-
name: Docker Setup Buildx
uses: docker/setup-buildx-action@v3.11.1
-
name: Docker Login
uses: docker/login-action@v3.5.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push Docker images
uses: docker/build-push-action@v6.18.0
with:
context: .
platforms: linux/arm64,linux/amd64
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/code-server:init
file: .github/workflows/Dockerfile.init
cache-from: type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/code-server:init.cache
cache-to: type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/code-server:init.cache,mode=max
Repository_Dispatch:
needs: Build_For_Code_Server_Init
runs-on: ubuntu-latest
steps:
-
name: Repository Dispatch
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.TOKEN_GITHUB }}
repository: ${{ secrets.DOCKERHUB_USERNAME }}/Code-Server-Update
event-type: Code_Update_Action
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'