Skip to content

Commit 56da993

Browse files
committed
.
1 parent 52253f6 commit 56da993

3 files changed

Lines changed: 9 additions & 59 deletions

File tree

.github/workflows/dispatch-copy-image.yml.example

Lines changed: 0 additions & 50 deletions
This file was deleted.

.github/workflows/dispatch-example.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ name: GitHub action dispath
33
on:
44
workflow_dispatch:
55
inputs:
6-
test-regurl-tag:
6+
source-regurl-tag:
77
required: true
88
default: ""
99
description: "Container image registry URL with tag. e.g., gcr.io/project-id-372417/source-image:2650c2f7c04640b8c67df560510914f7ba2033e2"
10-
prod-regurl:
10+
target-regurl:
1111
required: true
1212
default: ""
1313
description: "Container image registry URL WITHOUT tag e.g., gcr.io/project-id-372417/target-image"
1414

1515
env:
16-
TEST_IMAGE_WITH_TAG: ${{ github.env.inputs.test-regurl-tag }}
17-
PROD_IMAGE_URL: ${{ github.env.inputs.prod-regurl }}
16+
SOURCE_IMAGE_WITH_TAG: ${{ github.env.inputs.source-regurl-tag }}
17+
TARGET_IMAGE_URL: ${{ github.env.inputs.target-regurl }}
1818

1919
jobs:
2020
copy_container_image:
@@ -23,12 +23,12 @@ jobs:
2323
steps:
2424
- name: Get image tag
2525
run: |
26-
echo IMAGE_TAG=$(echo ${{ env.TEST_IMAGE_WITH_TAG }} | cut -d":" -f2) >> $GITHUB_ENV
26+
echo IMAGE_TAG=$(echo ${{ env.SOURCE_IMAGE_WITH_TAG }} | cut -d":" -f2) >> $GITHUB_ENV
2727
2828
- name: Summary
2929
run: |
30-
echo "TEST_IMAGE_WITH_TAG=${{ env.TEST_IMAGE_WITH_TAG }}" >> $GITHUB_STEP_SUMMARY
31-
echo "PROD_IMAGE=${{ env.PROD_IMAGE_URL }}:${{ env.IMAGE_TAG }}" >> $GITHUB_STEP_SUMMARY
30+
echo "SOURCE_IMAGE_WITH_TAG=${{ env.SOURCE_IMAGE_WITH_TAG }}" >> $GITHUB_STEP_SUMMARY
31+
echo "PROD_IMAGE=${{ env.TARGET_IMAGE_URL }}:${{ env.IMAGE_TAG }}" >> $GITHUB_STEP_SUMMARY
3232
3333
- uses: hmarr/debug-action@v2
3434
if: always()
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"ref": "develop",
33
"inputs": {
4-
"test-url-tag": "gcr.io/project-id-372417/source-image:2650c2f7c04640b8c67df560510914f7ba2033e2",
5-
"prod-url": "gcr.io/project-id-372417/target-image"
4+
"source-url-tag": "gcr.io/project-id-372417/source-image:2650c2f7c04640b8c67df560510914f7ba2033e2",
5+
"target-url": "gcr.io/project-id-372417/target-image"
66
}
77
}

0 commit comments

Comments
 (0)