Skip to content

Commit a14eabe

Browse files
authored
Update container_build.yml
1 parent 686444d commit a14eabe

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/container_build.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,16 @@ jobs:
1616
- name: Checkout
1717
uses: actions/checkout@v2
1818

19+
- name: Get creation time
20+
id: time
21+
uses: actions/github-script@v2
22+
with:
23+
script: |
24+
core.setOutput('datetime', new Date().toISOString());
25+
1926
- name: Build Container
2027
run: |
21-
docker build centos-actions-runner -t ${CONTAINER_TAG} --build-arg COMMIT_SHA=${{ github.sha }}
28+
docker build centos-actions-runner -t ${CONTAINER_TAG} --build-arg COMMIT_SHA=${{ github.sha }} --build-arg CREATED="${{ steps.time.outputs.datetime }}"
2229
2330
- name: Publish
2431
run: |

0 commit comments

Comments
 (0)