-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (52 loc) · 1.71 KB
/
build-alpine-base-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
name: 'Run Docker - Alpine'
# Allow run manually
on:
workflow_dispatch:
inputs:
working_directory:
type: string
description: What working directory should be passed to the script
default: "containers/alpine"
docker_image_name:
type: string
description: 'Docker Image name?'
default: "azdo-agent-containers/alpine:latest"
enable_debug_mode:
type: boolean
description: 'Whether debug mode should be enable for within the script'
default: true
registry_url:
type: string
description: 'The URL of the container registry'
default: ghcr.io
docker_file_name:
type: string
description: 'Docker file name?'
default: "Dockerfile"
push_docker_image:
type: boolean
description: 'Push docker image?'
default: true
jobs:
run-script:
name: 'Run Script'
runs-on: ubuntu-latest
defaults:
run:
shell: pwsh
steps:
- uses: actions/checkout@v3
- name: Build
id: run-script
shell: pwsh
run: |
$workingDirectory = Join-Path -Path "${{ github.workspace }}" -ChildPath "${{ inputs.working_directory }}"
.\Run-Docker.ps1 `
-WorkingDirectory $workingDirectory `
-PushDockerImage ${{ inputs.push_docker_image }} `
-DebugMode ${{ inputs.enable_debug_mode }} `
-DockerImageName ${{ inputs.docker_image_name }} `
-DockerFileName ${{ inputs.docker_file_name }} `
-RegistryUsername ${{ secrets.RegistryUsername }} `
-RegistryPassword ${{ secrets.RegistryPassword }} `
-ImageOrg ${{ github.repository_owner }}