-
-
Notifications
You must be signed in to change notification settings - Fork 1
141 lines (114 loc) · 4.73 KB
/
build-fedora-image.yml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
name: Build and Publish Fedora Image
on:
push:
branches: [ "main" ]
paths:
- configs/Fedora/KDE/Dockerfile
- configs/Fedora/XFCE/Dockerfile
workflow_dispatch:
env:
REGISTRY_USER: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
jobs:
fedora-image-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker image build -f configs/Fedora/XFCE/Dockerfile -t docker.io/kbdharun/kasm-dev-fedora:latest .
- name: Push to DockerHub
run: |
echo -n ${{ secrets.DOCKER_TOKEN }} | docker login docker.io -u kbdharun --password-stdin
docker image push "docker.io/kbdharun/kasm-dev-fedora:latest"
- uses: sigstore/cosign-installer@v3.4.0
- name: Sign container image
run: |
cosign sign -y --key env://COSIGN_PRIVATE_KEY docker.io/kbdharun/kasm-dev-fedora:latest
env:
COSIGN_EXPERIMENTAL: false
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}
fedora-image-ghcr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker image build -f configs/Fedora/XFCE/Dockerfile -t ghcr.io/kbdharun/kasm-dev-fedora:latest .
- name: Push to GHCR
run: |
echo -n ${{ env.REGISTRY_PASSWORD }} | docker login ghcr.io -u ${{ env.REGISTRY_USER }} --password-stdin
docker image push "ghcr.io/kbdharun/kasm-dev-fedora:latest"
- uses: sigstore/cosign-installer@v3.4.0
- name: Sign container image
run: |
cosign sign -y --key env://COSIGN_PRIVATE_KEY ghcr.io/kbdharun/kasm-dev-fedora:latest
env:
COSIGN_EXPERIMENTAL: false
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}
fedora-image-quay:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker image build -f configs/Fedora/XFCE/Dockerfile -t quay.io/kbdharun/kasm-dev-fedora:latest .
- name: Push to Quay
run: |
echo -n ${{ secrets.QUAY_TOKEN }} | docker login quay.io -u ${{ secrets.QUAY_USER }} --password-stdin
docker image push "quay.io/kbdharun/kasm-dev-fedora:latest"
- uses: sigstore/cosign-installer@v3.4.0
- name: Sign container image
run: |
cosign sign -y --key env://COSIGN_PRIVATE_KEY quay.io/kbdharun/kasm-dev-fedora:latest
env:
COSIGN_EXPERIMENTAL: false
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}
fedora-kde-image-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker image build -f configs/Fedora/KDE/Dockerfile -t docker.io/kbdharun/kasm-dev-fedora-kde:latest .
- name: Push to Docker Hub
run: |
echo -n ${{ secrets.DOCKER_TOKEN }} | docker login docker.io -u kbdharun --password-stdin
docker image push "docker.io/kbdharun/kasm-dev-fedora-kde:latest"
- uses: sigstore/cosign-installer@v3.4.0
- name: Sign container image
run: |
cosign sign -y --key env://COSIGN_PRIVATE_KEY docker.io/kbdharun/kasm-dev-fedora-kde:latest
env:
COSIGN_EXPERIMENTAL: false
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}
fedora-kde-image-ghcr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker image build -f configs/Fedora/KDE/Dockerfile -t ghcr.io/kbdharun/kasm-dev-fedora-kde:latest .
- name: Push to GHCR
run: |
echo -n ${{ env.REGISTRY_PASSWORD }} | docker login ghcr.io -u ${{ env.REGISTRY_USER }} --password-stdin
docker image push "ghcr.io/kbdharun/kasm-dev-fedora-kde:latest"
- uses: sigstore/cosign-installer@v3.4.0
- name: Sign container image
run: |
cosign sign -y --key env://COSIGN_PRIVATE_KEY ghcr.io/kbdharun/kasm-dev-fedora-kde:latest
env:
COSIGN_EXPERIMENTAL: false
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}
fedora-kde-image-quay:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker image build -f configs/Fedora/KDE/Dockerfile -t quay.io/kbdharun/kasm-dev-fedora-kde:latest .
- name: Push to Quay
run: |
echo -n ${{ secrets.QUAY_TOKEN }} | docker login quay.io -u ${{ secrets.QUAY_USER }} --password-stdin
docker image push "quay.io/kbdharun/kasm-dev-fedora-kde:latest"
- uses: sigstore/cosign-installer@v3.4.0
- name: Sign container image
run: |
cosign sign -y --key env://COSIGN_PRIVATE_KEY quay.io/kbdharun/kasm-dev-fedora-kde:latest
env:
COSIGN_EXPERIMENTAL: false
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}