-
Notifications
You must be signed in to change notification settings - Fork 0
104 lines (93 loc) · 2.84 KB
/
docker-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
name: Docker Image CI
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Docker meta
uses: docker/metadata-action@v5
id: meta
with:
images: m0rf30/yap*
labels: |
maintainer=Yap
org.opencontainers.image.authors=M0Rf30
org.opencontainers.image.title=yap
org.opencontainers.image.description=Package software with ease 📦
org.opencontainers.image.vendor=M0Rf30
tags: |
type=raw,value=latest
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
labels: ${{ steps.meta.outputs.labels }}
tags: |
m0rf30/yap-alpine:latest
file: docker/alpine/Dockerfile
# - name: Build and push
# uses: docker/build-push-action@v5
# with:
# context: .
# push: true
# labels: ${{ steps.meta.outputs.labels }}
# tags: |
# m0rf30/yap-arch:latest
# ghcr.io/m0rf30/yap-arch:latest
# file: docker/arch/Dockerfile
# - name: Build and push
# uses: docker/build-push-action@v5
# with:
# context: .
# push: true
# labels: ${{ steps.meta.outputs.labels }}
# tags: |
# m0rf30/yap-opensuse-tubleweed:latest
# ghcr.io/m0rf30/yap-opensuse-tubleweed:latest
# file: docker/opensuse-tubleweed/Dockerfile
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
labels: ${{ steps.meta.outputs.labels }}
tags: |
m0rf30/yap-rocky-8:latest
file: docker/rocky-8/Dockerfile
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
labels: ${{ steps.meta.outputs.labels }}
tags: |
m0rf30/yap-rocky-9:latest
file: docker/rocky-9/Dockerfile
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
labels: ${{ steps.meta.outputs.labels }}
tags: |
m0rf30/yap-ubuntu-focal:latest
file: docker/ubuntu-focal/Dockerfile
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
labels: ${{ steps.meta.outputs.labels }}
tags: |
m0rf30/yap-ubuntu-jammy:latest
file: docker/ubuntu-jammy/Dockerfile