-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (33 loc) · 965 Bytes
/
docker_image_build.yml
File metadata and controls
37 lines (33 loc) · 965 Bytes
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
name: docker image build
on:
workflow_call:
inputs:
VERSION_NUMBER:
required: true
type: string
COMMIT_ID:
required: true
type: string
jobs:
docker_image_build:
runs-on: ubuntu-22.04
permissions:
id-token: write
contents: read
packages: read
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
ref: ${{ env.BRANCH_NAME }}
- name: Build cdk-utils-build Docker image
id: build-cdk-utils-build-image
run: |
docker build -t "cdk-utils-build:${{ inputs.VERSION_NUMBER }}" -f docker/Dockerfile --build-arg VERSION=${{ inputs.VERSION_NUMBER }} .
docker save "cdk-utils-build:${{ inputs.VERSION_NUMBER }}" -o cdk-utils-build.img
- uses: actions/upload-artifact@v4
name: Upload docker images
with:
name: docker_artifact
path: |
cdk-utils-build.img