-
Notifications
You must be signed in to change notification settings - Fork 7
40 lines (37 loc) · 1.39 KB
/
pkg.yaml
File metadata and controls
40 lines (37 loc) · 1.39 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
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: {}
jobs:
git-check:
name: Git
uses: ./.github/workflows/reusable-git-check.yml
image-publication:
name: "Image ${{ matrix.name }}"
needs: git-check
if: github.event_name == 'workflow_dispatch' || needs.git-check.outputs.app_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@c90ba46a93ca90123f57744b47e49c1a73962cea
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 }}"
secrets:
container-registry-password: ${{ secrets.DOCKERHUB_TOKEN }}
container-registry-username: ${{ secrets.DOCKERHUB_USERNAME }}