Repository navigation
48 lines (44 loc) · 1.71 KB
/
Copy pathpkg.yaml
File metadata and controls
48 lines (44 loc) · 1.71 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
name: PKG
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
# purpose: Continuous Delivery (aka Packaging & Shipping)
on:
push:
branches: [main]
workflow_dispatch: {}
permissions:
contents: read
jobs:
git-check:
name: Git
uses: devpro/github-workflow-parts/.github/workflows/reusable-git-check.yml@591b0c7bfba6fbc7b0cab7d896447e0732b819de
with:
version-file: Directory.Build.props
workflow-parts-version: 591b0c7bfba6fbc7b0cab7d896447e0732b819de
image-publication:
name: "Image ${{ matrix.name }}"
needs: git-check
if: github.event_name == 'workflow_dispatch' || needs.git-check.outputs.changed == 'true'
strategy:
matrix:
include:
- name: "Blazor App"
image-name: "keeptrack-blazorapp"
image-definition: "src/BlazorApp/Dockerfile"
- name: "Web Api"
image-name: "keeptrack-webapi"
image-definition: "src/WebApi/Dockerfile"
permissions:
id-token: write
contents: read
uses: devpro/github-workflow-parts/.github/workflows/reusable-container-publication.yml@591b0c7bfba6fbc7b0cab7d896447e0732b819de
with:
create-latest: ${{ github.ref_name == 'main' }}
image-definition: ${{ matrix.image-definition }}
image-name: ${{ matrix.image-name }}
image-path: ${{ vars.CONTAINER_REGISTRY_PATH }}
image-tag: "${{ needs.git-check.outputs.version-major-minor }}.${{ github.run_id }}"
image-platform: linux/amd64
workflow-parts-version: 591b0c7bfba6fbc7b0cab7d896447e0732b819de
secrets:
container-registry-password: ${{ secrets.DOCKERHUB_TOKEN }}
container-registry-username: ${{ secrets.DOCKERHUB_USERNAME }}