-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (35 loc) · 1.05 KB
/
docker_image_build.yml
File metadata and controls
39 lines (35 loc) · 1.05 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
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@8e8c483db84b4bee98b60c0593521ed34d9990e8
with:
ref: ${{ env.BRANCH_NAME }}
- name: Build cdk-utils-build Docker image
id: build-cdk-utils-build-image
env:
VERSION_NUMBER: ${{ inputs.VERSION_NUMBER }}
run: |
docker build -t "cdk-utils-build:${VERSION_NUMBER}" -f docker/Dockerfile --build-arg VERSION="${VERSION_NUMBER}" .
docker save "cdk-utils-build:${VERSION_NUMBER}" -o cdk-utils-build.img
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f
name: Upload docker images
with:
name: docker_artifact
path: |
cdk-utils-build.img