Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 302b93e

Browse files
committed
🐳 Only publish images on versioned commit tags and remove the residual Kdenlive build
1 parent d7132e8 commit 302b93e

File tree

2 files changed

+58
-20
lines changed

2 files changed

+58
-20
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,40 +22,26 @@ jobs:
2222
- name: setup docker buildx
2323
uses: docker/setup-buildx-action@v1
2424

25-
- name: login to docker hub
26-
uses: docker/login-action@v1
27-
with:
28-
username: ${{ secrets.DOCKERHUB_USERNAME }}
29-
password: ${{ secrets.DOCKERHUB_TOKEN }}
30-
31-
- name: build and push code server image
25+
- name: build code server image
3226
uses: docker/build-push-action@v2
3327
with:
3428
context: ./docker
3529
file: ./docker/DockerfileCodeServer
36-
push: true
30+
push: false
3731
tags: ndebuhr/cloud-native-workstation-code-server:latest
3832

39-
- name: build and push kdenlive image
40-
uses: docker/build-push-action@v2
41-
with:
42-
context: ./docker
43-
file: ./docker/DockerfileKdenlive
44-
push: true
45-
tags: ndebuhr/cloud-native-workstation-kdenlive:latest
46-
47-
- name: build and push keycloak seeding image
33+
- name: build keycloak seeding image
4834
uses: docker/build-push-action@v2
4935
with:
5036
context: ./docker
5137
file: ./docker/DockerfileKeycloakSeeding
52-
push: true
38+
push: false
5339
tags: ndebuhr/cloud-native-workstation-keycloak-seeding:latest
5440

55-
- name: build and push novnc image
41+
- name: build novnc image
5642
uses: docker/build-push-action@v2
5743
with:
5844
context: ./docker
5945
file: ./docker/DockerfileNovnc
60-
push: true
46+
push: false
6147
tags: ndebuhr/cloud-native-workstation-novnc:latest

.github/workflows/publish.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: publish
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: code checkout
13+
uses: actions/checkout@v2
14+
with:
15+
# Disabling shallow clone is recommended for improving relevancy of reporting
16+
fetch-depth: 0
17+
18+
- name: setup up qemu
19+
uses: docker/setup-qemu-action@v1
20+
21+
- name: setup docker buildx
22+
uses: docker/setup-buildx-action@v1
23+
24+
- name: login to docker hub
25+
uses: docker/login-action@v1
26+
with:
27+
username: ${{ secrets.DOCKERHUB_USERNAME }}
28+
password: ${{ secrets.DOCKERHUB_TOKEN }}
29+
30+
- name: build and push code server image
31+
uses: docker/build-push-action@v2
32+
with:
33+
context: ./docker
34+
file: ./docker/DockerfileCodeServer
35+
push: true
36+
tags: ndebuhr/cloud-native-workstation-code-server:latest
37+
38+
- name: build and push keycloak seeding image
39+
uses: docker/build-push-action@v2
40+
with:
41+
context: ./docker
42+
file: ./docker/DockerfileKeycloakSeeding
43+
push: true
44+
tags: ndebuhr/cloud-native-workstation-keycloak-seeding:latest
45+
46+
- name: build and push novnc image
47+
uses: docker/build-push-action@v2
48+
with:
49+
context: ./docker
50+
file: ./docker/DockerfileNovnc
51+
push: true
52+
tags: ndebuhr/cloud-native-workstation-novnc:latest

0 commit comments

Comments
 (0)