Skip to content

Commit 2d5830e

Browse files
committed
setup temporary config for testing signing in CI
1 parent 18b8a53 commit 2d5830e

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

.github/workflows/image-publish.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66

77
name: Publish monitoring image to Docker Registry (on new release tag)
88
on:
9-
push:
10-
tags:
11-
# To modify to trigger the job for fork's releases
12-
# Note: GitHub's filter pattern capabilities are limited[1], so this
13-
# pattern matches more often than it should. A more correct regex would
14-
# be the one found in scripts/tag.sh.
15-
# [1] https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
16-
- "interuss/monitoring/v[0-9]+.[0-9]+.[0-9]+-?*"
9+
pull_request: # TODO: added for testing purposes, remove me before merging
10+
# push:
11+
# tags:
12+
# # To modify to trigger the job for fork's releases
13+
# # Note: GitHub's filter pattern capabilities are limited[1], so this
14+
# # pattern matches more often than it should. A more correct regex would
15+
# # be the one found in scripts/tag.sh.
16+
# # [1] https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
17+
# - "interuss/monitoring/v[0-9]+.[0-9]+.[0-9]+-?*"
1718
permissions:
1819
contents: read
1920
jobs:
@@ -54,7 +55,7 @@ jobs:
5455
- name: Build, push and sign image
5556
env:
5657
DOCKER_URL: ${{ secrets.DOCKER_URL }}
57-
DOCKER_UPDATE_LATEST: true
58+
DOCKER_UPDATE_LATEST: false # TODO: changed for testing purposes, revert me to 'true' before merging
5859
DOCKER_SIGN: true
5960
CERT_IDENTITY: https://github.com/${{ github.workflow_ref }}
6061
CERT_ISSUER: https://token.actions.githubusercontent.com

build/build_and_push.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ else
2727
fi
2828
cd "${BASEDIR}"
2929

30-
VERSION=$(./scripts/git/version.sh monitoring)
30+
#VERSION=$(./scripts/git/version.sh monitoring)
31+
VERSION=cosign-test-bis
3132
LATEST_TAG="latest"
3233

3334
if [[ -z "${DOCKER_URL}" ]]; then

0 commit comments

Comments
 (0)