Repository navigation
50 lines (45 loc) · 1.69 KB
/
Copy pathself-test-docker.yaml
File metadata and controls
50 lines (45 loc) · 1.69 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
49
50
---
# yamllint disable rule:line-length
name: self-test-docker
on:
pull_request:
paths:
- '.github/workflows/build-docker-image.yaml'
- '.github/workflows/lint-hadolint.yaml'
- '.github/workflows/self-test-docker.yaml'
- 'test/docker/**'
schedule:
- cron: '0 4 * * 1'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
lint-docker:
uses: ./.github/workflows/lint-hadolint.yaml
with:
git_ref: ${{ github.head_ref || github.ref }}
files: 'ALL'
build-docker-image:
uses: ./.github/workflows/build-docker-image.yaml
permissions:
contents: read
packages: write # exercises the GHCR push -- lint-docker doesn't need this, so it stays off the workflow-level block
with:
git_ref: ${{ github.head_ref || github.ref }}
image_context_path: test/docker
label_title: "Test Docker Build"
label_description: "Test Docker Build"
platforms: linux/amd64,linux/arm64
private_registry_repository: ${{ vars.CONTAINER_REGISTRY_PATH }}/test-docker-build
private_registry_build_cache: ${{ vars.CONTAINER_REGISTRY_CACHE_PATH }}/test-docker-build
ghcr_repository: ${{ github.repository_owner }}/test-docker-build
timeout_minutes: 10
secrets:
private_registry_username: ${{ secrets.CONTAINER_REGISTRY_USERNAME }}
private_registry_token: ${{ secrets.CONTAINER_REGISTRY_PASSWORD }}
private_registry: ${{ secrets.CONTAINER_REGISTRY }}
tailscale_oauth_client_id: ${{ secrets.TAILSCALE_OAUTH_CLIENT_ID }}
tailscale_oauth_secret: ${{ secrets.TAILSCALE_OAUTH_SECRET }}