-
-
Notifications
You must be signed in to change notification settings - Fork 14
84 lines (81 loc) · 2.76 KB
/
ci_main_docker.yaml
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
name: ci_main_docker
on:
push:
branches:
- "main"
jobs:
build:
name: Build Docker image
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
uses: kzrnm/get-net-sdk-project-versions-action@v2
id: get-version
with:
proj-path: src/FoxIDs/FoxIDs.csproj
-
name: Docker meta
id: meta-f
uses: docker/metadata-action@v5
with:
images: ${{ secrets.DOCKERHUB_ORG }}/foxids
tags: |
type=raw,value=${{ steps.get-version.outputs.version }}
type=raw,value=latest,enable=true
-
name: Docker meta
id: meta-fc
uses: docker/metadata-action@v5
with:
images: ${{ secrets.DOCKERHUB_ORG }}/foxids-control
tags: |
type=raw,value=${{ steps.get-version.outputs.version }}
type=raw,value=latest,enable=true
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build and push FoxIDs
uses: docker/build-push-action@v5
with:
context: .
file: ./src/FoxIDs/Dockerfile
platforms: linux/amd64
push: true
tags: ${{ steps.meta-f.outputs.tags }}
labels: ${{ steps.meta-f.outputs.labels }}
-
name: Build and push FoxIDs.Control
uses: docker/build-push-action@v5
with:
context: .
file: ./src/FoxIDs.Control/Dockerfile
platforms: linux/amd64
push: true
tags: ${{ steps.meta-fc.outputs.tags }}
labels: ${{ steps.meta-fc.outputs.labels }}
- name: Docker Hub Description FoxIDs
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: ${{ secrets.DOCKERHUB_ORG }}/foxids
readme-filepath: ./Docker/README-FoxIDs-image.md
short-description: "FoxIDs is an identity service (IDS) that supports login, OAuth 2.0, OpenID Connect 1.0 and SAML 2.0."
- name: Docker Hub Description FoxIDs.Control
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: ${{ secrets.DOCKERHUB_ORG }}/foxids-control
readme-filepath: ./Docker/README-FoxIDs-Control-image.md
short-description: "FoxIDs Control is the admin site for the Identity Services FoxIDs."