Skip to content

Commit 5edf1d3

Browse files
authored
MRG: Merge pull request #7 from octue/fix/rename-artefact-to-artifact
Rename "artefact" to "artifact" to align with common spelling
2 parents cf7beef + bb40245 commit 5edf1d3

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,23 +46,23 @@ jobs:
4646
expected: ${{ env.GITHUB_REF_SLUG }}
4747
actual: ${{ steps.get-deployment-info.outputs.branch_tag_kebab }}
4848

49-
- name: Check `image_latest_artefact`
49+
- name: Check `image_latest_artifact`
5050
uses: nick-fields/assert-action@v1
5151
with:
5252
expected: europe-west6-docker.pkg.dev/my-test-project/my-affix/my-test-service:${{ env.GITHUB_REF_SLUG }}-latest
53-
actual: ${{ steps.get-deployment-info.outputs.image_latest_artefact }}
53+
actual: ${{ steps.get-deployment-info.outputs.image_latest_artifact }}
5454

5555
- name: Check `image_latest_tag`
5656
uses: nick-fields/assert-action@v1
5757
with:
5858
expected: ${{ env.GITHUB_REF_SLUG }}-latest
5959
actual: ${{ steps.get-deployment-info.outputs.image_latest_tag }}
6060

61-
- name: Check `image_version_artefact`
61+
- name: Check `image_version_artifact`
6262
uses: nick-fields/assert-action@v1
6363
with:
6464
expected: europe-west6-docker.pkg.dev/my-test-project/my-affix/my-test-service:${{ env.GITHUB_REF_SLUG }}-unreleased
65-
actual: ${{ steps.get-deployment-info.outputs.image_version_artefact }}
65+
actual: ${{ steps.get-deployment-info.outputs.image_version_artifact }}
6666

6767
- name: Check `image_version_tag`
6868
uses: nick-fields/assert-action@v1

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ Outputs can be accessed in the usual way. For example, to print all the outputs:
4242
run: |
4343
echo ${{ steps.get-deployment-info.outputs.branch_tag_kebab }}
4444
echo ${{ steps.get-deployment-info.outputs.branch_tag_screaming }}
45-
echo ${{ steps.get-deployment-info.outputs.image_latest_artefact }}
45+
echo ${{ steps.get-deployment-info.outputs.image_latest_artifact }}
4646
echo ${{ steps.get-deployment-info.outputs.image_latest_tag }}
47-
echo ${{ steps.get-deployment-info.outputs.image_version_artefact }}
47+
echo ${{ steps.get-deployment-info.outputs.image_version_artifact }}
4848
echo ${{ steps.get-deployment-info.outputs.image_version_tag }}
4949
echo ${{ steps.get-deployment-info.outputs.short_sha }}
5050
echo ${{ steps.get-deployment-info.outputs.version_slug }}

action.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ outputs:
3030
description: "The tag or branch name in kebab case."
3131
branch_tag_screaming:
3232
description: "The tag or branch name in screaming snake case."
33-
image_latest_artefact:
34-
description: "The artefact URI for the latest docker image."
33+
image_latest_artifact:
34+
description: "The artifact URI for the latest docker image."
3535
image_latest_tag:
3636
description: "The tag of the latest docker image."
37-
image_version_artefact:
38-
description: "The artefact URI for the docker image for the version to deploy."
37+
image_version_artifact:
38+
description: "The artifact URI for the docker image for the version to deploy."
3939
image_version_tag:
4040
description: "The tag of the docker image for the version."
4141
short_sha:

get_deployment_info/entrypoint.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,22 @@ echo "image_version_tag=$IMAGE_VERSION_TAG" >> $GITHUB_OUTPUT
4848
IMAGE_LATEST_TAG="$BRANCH_TAG_KEBAB-latest"
4949
echo "image_latest_tag=$IMAGE_LATEST_TAG" >> $GITHUB_OUTPUT
5050

51-
# Set image artefact addresses.
52-
IMAGE_VERSION_ARTEFACT="$GCP_REGION-docker.pkg.dev/$GCP_PROJECT_NAME/$GCP_RESOURCE_AFFIX/$GCP_SERVICE_NAME:$IMAGE_VERSION_TAG"
53-
echo "image_version_artefact=$IMAGE_VERSION_ARTEFACT" >> $GITHUB_OUTPUT
51+
# Set image artifact addresses.
52+
IMAGE_VERSION_ARTIFACT="$GCP_REGION-docker.pkg.dev/$GCP_PROJECT_NAME/$GCP_RESOURCE_AFFIX/$GCP_SERVICE_NAME:$IMAGE_VERSION_TAG"
53+
echo "image_version_artifact=$IMAGE_VERSION_ARTIFACT" >> $GITHUB_OUTPUT
5454

55-
IMAGE_LATEST_ARTEFACT="$GCP_REGION-docker.pkg.dev/$GCP_PROJECT_NAME/$GCP_RESOURCE_AFFIX/$GCP_SERVICE_NAME:$IMAGE_LATEST_TAG"
56-
echo "image_latest_artefact=$IMAGE_LATEST_ARTEFACT" >> $GITHUB_OUTPUT
55+
IMAGE_LATEST_ARTIFACT="$GCP_REGION-docker.pkg.dev/$GCP_PROJECT_NAME/$GCP_RESOURCE_AFFIX/$GCP_SERVICE_NAME:$IMAGE_LATEST_TAG"
56+
echo "image_latest_artifact=$IMAGE_LATEST_ARTIFACT" >> $GITHUB_OUTPUT
5757

5858
# Echo the outputs to stdout to aid debugging.
5959
echo ""
6060
echo "OUTPUTS"
6161
echo "======="
6262
echo "- branch_tag_kebab: $BRANCH_TAG_KEBAB"
6363
echo "- branch_tag_screaming: $BRANCH_TAG_SCREAMING"
64-
echo "- image_latest_artefact: $IMAGE_LATEST_ARTEFACT"
64+
echo "- image_latest_artifact: $IMAGE_LATEST_ARTIFACT"
6565
echo "- image_latest_tag: $IMAGE_LATEST_TAG"
66-
echo "- image_version_artefact: $IMAGE_VERSION_ARTEFACT"
66+
echo "- image_version_artifact: $IMAGE_VERSION_ARTIFACT"
6767
echo "- image_version_tag: $IMAGE_VERSION_TAG"
6868
echo "- short_sha: $SHORT_SHA"
6969
echo "- version_slug: $VERSION_SLUG"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "get-deployment-info"
3-
version = "0.1.2"
3+
version = "0.1.3"
44
description = "A Github Action that gets the information required to build and deploy an Octue service."
55
authors = ["Marcus Lugg <[email protected]>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)