Skip to content

Commit 887fc41

Browse files
committed
Test sign
1 parent e0b7446 commit 887fc41

File tree

3 files changed

+22
-21
lines changed

3 files changed

+22
-21
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Continuous integration
22
on:
3-
pull_request: # All
3+
# pull_request: # All
44
push:
55
branches:
66
- main

.github/workflows/image-publish.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
name: Publish monitoring image to Docker Registry (on new release tag)
88
on:
9+
pull_request: # All
910
push:
1011
tags:
1112
# To modify to trigger the job for fork's releases
@@ -21,15 +22,13 @@ jobs:
2122
name: Build and Push to Docker Hub
2223
runs-on: ubuntu-latest
2324
# To modify to enable the job for forked repository
24-
if: github.repository == 'interuss/monitoring'
25+
# if: github.repository == 'interuss/monitoring'
2526
permissions:
2627
id-token: write # needed for signing the images with GitHub OIDC Token
2728

2829
steps:
2930
- name: Install Cosign
3031
uses: sigstore/cosign-installer@cad07c2e89fa2edd6e2d7bab4c1aa38e53f76003 # v4.1.1
31-
with:
32-
cosign-release: 'v2.6.1'
3332
- name: Job information
3433
run: |
3534
echo "Job information"
@@ -46,12 +45,12 @@ jobs:
4645
submodules: true
4746
fetch-depth: 0
4847

49-
- name: Log in to Docker Hub
50-
uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0
51-
with:
52-
registry: docker.io
53-
username: ${{ secrets.DOCKER_USERNAME }}
54-
password: ${{ secrets.DOCKER_PASSWORD }}
48+
# - name: Log in to Docker Hub
49+
# uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0
50+
# with:
51+
# registry: docker.io
52+
# username: ${{ secrets.DOCKER_USERNAME }}
53+
# password: ${{ secrets.DOCKER_PASSWORD }}
5554

5655
- name: Build, push and sign image
5756
env:

build/build_and_push.sh

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ cd "${BASEDIR}"
3030
VERSION=$(./scripts/git/version.sh monitoring)
3131
LATEST_TAG="latest"
3232

33+
DOCKER_URL="docker.io/mcuoorb"
34+
3335
if [[ -z "${DOCKER_URL}" ]]; then
3436
echo "DOCKER_URL environment variable is not set; building image to interuss/monitoring..."
3537
./monitoring/build.sh
@@ -41,8 +43,8 @@ else
4143
echo "Building image ${TAG}"
4244
./monitoring/build.sh "${TAG}"
4345

44-
echo "Pushing docker image ${TAG}..."
45-
docker image push "${TAG}"
46+
# echo "Pushing docker image ${TAG}..."
47+
# docker image push "${TAG}"
4648

4749
echo "Built and pushed docker image ${TAG}"
4850

@@ -59,13 +61,13 @@ else
5961

6062
fi
6163

62-
if [[ "${DOCKER_UPDATE_LATEST}" == "true" ]]; then
63-
echo "Tagging docker image ${DOCKER_URL}/monitoring:${LATEST_TAG}..."
64-
docker tag "${TAG}" "${DOCKER_URL}/monitoring:${LATEST_TAG}"
65-
66-
echo "Pushing docker image ${DOCKER_URL}/monitoring:${LATEST_TAG}..."
67-
docker image push "${DOCKER_URL}/monitoring:${LATEST_TAG}"
68-
69-
echo "Built and pushed docker image ${DOCKER_URL}/monitoring:${LATEST_TAG}"
70-
fi
64+
# if [[ "${DOCKER_UPDATE_LATEST}" == "true" ]]; then
65+
# echo "Tagging docker image ${DOCKER_URL}/monitoring:${LATEST_TAG}..."
66+
# docker tag "${TAG}" "${DOCKER_URL}/monitoring:${LATEST_TAG}"
67+
#
68+
# echo "Pushing docker image ${DOCKER_URL}/monitoring:${LATEST_TAG}..."
69+
# docker image push "${DOCKER_URL}/monitoring:${LATEST_TAG}"
70+
#
71+
# echo "Built and pushed docker image ${DOCKER_URL}/monitoring:${LATEST_TAG}"
72+
# fi
7173
fi

0 commit comments

Comments
 (0)