Merge pull request 'ci: name the tag in GitHub's tag status, and make digests re-runnable' (#35) from ci/tag-path-hardening into main
This commit was merged in pull request #35.
This commit is contained in:
commit
63ddc23ee2
2 files changed
+8
-3
No files matched your search
@@ -228,7 +228,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
SHA: ${{ github.event.pull_request.head.sha || github.sha }}
|
SHA: ${{ github.event.pull_request.head.sha || github.sha }}
|
||||||
CONTEXT: github/ci (${{ github.ref_type == 'tag' && 'tag' || 'branch' }})
|
CONTEXT: github/ci (${{ github.ref_type == 'tag' && format('tag {0}', github.ref_name) || 'branch' }})
|
||||||
steps:
|
steps:
|
||||||
- run: apt-get update -qq && apt-get install -y -qq --no-install-recommends ca-certificates curl jq >/dev/null
|
- run: apt-get update -qq && apt-get install -y -qq --no-install-recommends ca-certificates curl jq >/dev/null
|
||||||
- shell: bash
|
- shell: bash
|
||||||
|
|||||||
@@ -47,7 +47,9 @@ env:
|
|||||||
REGISTRY: ${{ vars.REGISTRY }}
|
REGISTRY: ${{ vars.REGISTRY }}
|
||||||
# A registry path must be lowercase; the repository name already is.
|
# A registry path must be lowercase; the repository name already is.
|
||||||
IMAGE: ${{ vars.REGISTRY }}/inbuxa/ihasmail-inbuxa
|
IMAGE: ${{ vars.REGISTRY }}/inbuxa/ihasmail-inbuxa
|
||||||
STATUS_CONTEXT: github/ci (${{ github.ref_type }})
|
# A tag's context names the tag: upstream v* and inbuxa-v* tags can sit on
|
||||||
|
# the same commit, and Gitea must not read one tag's result as the other's.
|
||||||
|
STATUS_CONTEXT: github/ci (${{ github.ref_type == 'tag' && format('tag {0}', github.ref_name) || 'branch' }})
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Tells Gitea a result is on its way, so a PR shows the check as running
|
# Tells Gitea a result is on its way, so a PR shows the check as running
|
||||||
@@ -179,7 +181,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: digest-${{ strategy.job-index }}
|
name: digest-${{ strategy.job-index }}
|
||||||
path: /tmp/digests/*
|
path: /tmp/digests/*
|
||||||
retention-days: 1
|
# Kept a week, and overwritable, so a re-run of the build or of
|
||||||
|
# publish alone still finds (or replaces) the digests.
|
||||||
|
retention-days: 7
|
||||||
|
overwrite: true
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
# Joins the digests into `:<version>` and `:latest`, links the package to
|
# Joins the digests into `:<version>` and `:latest`, links the package to
|
||||||
|
|||||||
Reference in new issue
Block a user