Skip to content

Commit 23996db

Browse files
committed
try: build reusable image
1 parent 8429089 commit 23996db

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

.github/workflows/build-env.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,31 @@
1+
name: Build Golden Base Image
2+
13
on:
4+
push:
5+
branches:
6+
- 'chore/improve-ci'
27
workflow_dispatch:
38
inputs:
49
release_tag:
510
description: 'Image tag (e.g., v7.0.0-dev)'
611
required: true
12+
default: 'v7.0.0-dev'
713
danger_version:
8-
description: 'dsDangerClient version/branch'
14+
description: 'dsDangerClient branch/tag'
915
required: true
1016
default: 'v7.0.0-dev'
1117

1218
jobs:
1319
build:
1420
runs-on: ubuntu-latest
1521
permissions:
22+
contents: read
1623
packages: write
24+
1725
steps:
18-
- uses: actions/checkout@v4
26+
- name: Checkout code
27+
uses: actions/checkout@v4
28+
1929
- name: Log in to GHCR
2030
uses: docker/login-action@v3
2131
with:
@@ -29,5 +39,6 @@ jobs:
2939
context: .
3040
push: true
3141
build-args: |
32-
DANGER_VERSION=${{ github.event.inputs.danger_version }}
33-
tags: ghcr.io/${{ github.repository_owner }}/ds-base-env:${{ github.event.inputs.release_tag }}
42+
DANGER_VERSION=${{ github.event.inputs.danger_version || 'v7.0.0-dev' }}
43+
tags: |
44+
ghcr.io/${{ github.repository_owner }}/ds-base-env:${{ github.event.inputs.release_tag || 'v7.0.0-dev' }}

0 commit comments

Comments
 (0)