Skip to content

Commit

Permalink
chore(deps): bump the github-actions-dependencies group
Browse files Browse the repository at this point in the history
Bumps the github-actions-dependencies group in /actions/helm/release-chart with 1 update: [mikefarah/yq](https://github.com/mikefarah/yq).

- [Release notes](https://github.com/mikefarah/yq/releases)
- [Changelog](https://github.com/mikefarah/yq/blob/master/release_notes.txt)
- [Commits](mikefarah/yq@v4.40.4...v4.40.5)

---
updated-dependencies:
- dependency-name: mikefarah/yq
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
  • Loading branch information
dependabot[bot] authored and neilime committed Dec 12, 2023
1 parent 3cfca8f commit 0b996d5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/__test-action-docker-build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ jobs:
assert.equal(builtImageOutput.digests.length, 1, `"digests" output is not valid`);
assert.match(builtImageOutput.digests[0], /^ghcr\.io\/hoverkraft-tech\/ci-github-container\/application-test@sha256:[a-f0-9]{64}$/, `"digests" output is not valid`);
// Annotations
assert.match(builtImageOutput.annotations["org.opencontainers.image.created"], /[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}Z/, `"annotations.org.opencontainers.image.created" output is not valid`);
assert.equal(builtImageOutput.annotations["org.opencontainers.image.description"], "Opinionated GitHub actions and workflows for continuous integration in OCI context", `"annotations.org.opencontainers.image.authors" output is not valid`);
assert.equal(builtImageOutput.annotations["org.opencontainers.image.licenses"], "MIT", `"annotations.org.opencontainers.image.licenses" output is not valid`);
assert.match(builtImageOutput.annotations["org.opencontainers.image.revision"], /^[a-f0-9]{40}$/, `"annotations.org.opencontainers.image.revision" output is not valid`);
assert.equal(builtImageOutput.annotations["org.opencontainers.image.source"], "https://github.com/hoverkraft-tech/ci-github-container", `"annotations.org.opencontainers.image.source" output is not valid`);
assert.equal(builtImageOutput.annotations["org.opencontainers.image.title"], "ci-github-container", `"annotations.org.opencontainers.image.title" output is not valid`);
assert.equal(builtImageOutput.annotations["org.opencontainers.image.url"], "https://github.com/hoverkraft-tech/ci-github-container", `"annotations.org.opencontainers.image.url" output is not valid`);
if (`${{ github.event_name }}` === "pull_request") {
const shortSha = `${{ github.sha }}`.substring(0, 7);
const prShaTag = `pr-${{ github.event.pull_request.number }}-${shortSha}`;
Expand All @@ -62,26 +71,20 @@ jobs:
assert.equal(builtImageOutput.images[0], `ghcr.io/hoverkraft-tech/ci-github-container/application-test:${prShaTag}`, `"images" output is not valid`);
assert.equal(builtImageOutput.images[1], `ghcr.io/hoverkraft-tech/ci-github-container/application-test:${prTag}`, `"images" output is not valid`);
assert.equal(builtImageOutput.annotations["org.opencontainers.image.version"], prTag, `"annotations.org.opencontainers.image.version" output is not valid`);
} else {
const refTag = `${{ github.ref }}`;
const refTag = `${{ github.ref_name }}`;
assert.equal(builtImageOutput.tags.length, 1, `"tags" output is not valid`);
assert.equal(builtImageOutput.tags, [refTag], `"tags" output is not valid`);
assert.equal(builtImageOutput.tags[0], refTag, `"tags" output is not valid`);
assert.equal(builtImageOutput.images.length, 1, `"images" output is not valid`);
assert.equal(builtImageOutput.images, [`ghcr.io/hoverkraft-tech/ci-github-container/application-test:${refTag}`], `"images" output is not valid`);
assert.equal(builtImageOutput.images[0], `ghcr.io/hoverkraft-tech/ci-github-container/application-test:${refTag}`, `"images" output is not valid`);
assert.equal(builtImageOutput.annotations["org.opencontainers.image.version"], refTag, `"annotations.org.opencontainers.image.version" output is not valid`);
}
// Annotations
assert.match(builtImageOutput.annotations["org.opencontainers.image.created"], /[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}Z/, `"annotations.org.opencontainers.image.created" output is not valid`);
assert.equal(builtImageOutput.annotations["org.opencontainers.image.description"], "Opinionated GitHub actions and workflows for continuous integration in OCI context", `"annotations.org.opencontainers.image.authors" output is not valid`);
assert.equal(builtImageOutput.annotations["org.opencontainers.image.licenses"], "MIT", `"annotations.org.opencontainers.image.licenses" output is not valid`);
assert.match(builtImageOutput.annotations["org.opencontainers.image.revision"], /^[a-f0-9]{40}$/, `"annotations.org.opencontainers.image.revision" output is not valid`);
assert.equal(builtImageOutput.annotations["org.opencontainers.image.source"], "https://github.com/hoverkraft-tech/ci-github-container", `"annotations.org.opencontainers.image.source" output is not valid`);
assert.equal(builtImageOutput.annotations["org.opencontainers.image.title"], "ci-github-container", `"annotations.org.opencontainers.image.title" output is not valid`);
assert.equal(builtImageOutput.annotations["org.opencontainers.image.url"], "https://github.com/hoverkraft-tech/ci-github-container", `"annotations.org.opencontainers.image.url" output is not valid`);
assert.match(builtImageOutput.annotations["org.opencontainers.image.version"], /^pr-[0-9]+$/, `"annotations.org.opencontainers.image.version" output is not valid`);
- uses: docker/login-action@v3
with:
registry: ghcr.io
Expand Down
2 changes: 1 addition & 1 deletion actions/helm/release-chart/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ runs:
core.setOutput('yq-command', yqCommands.join('\n'));
- uses: mikefarah/yq@v4.40.4
- uses: mikefarah/yq@v4.40.5
with:
cmd: |
yq -i '.name = "${{ github.event.repository.name }}" | .version = "${{ inputs.tag }}" | .appVersion = "${{ inputs.tag }}"' ${{ inputs.path }}/Chart.yaml
Expand Down

0 comments on commit 0b996d5

Please sign in to comment.