Skip to content

Commit 32f4e34

Browse files
committed
Test sign
1 parent e0b7446 commit 32f4e34

File tree

3 files changed

+24
-20
lines changed

3 files changed

+24
-20
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: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ cd "${BASEDIR}"
3030
VERSION=$(./scripts/git/version.sh monitoring)
3131
LATEST_TAG="latest"
3232

33+
34+
docker run -d -p 5000:5000 --name registry registry:2
35+
36+
DOCKER_URL="localhost:5000"
37+
3338
if [[ -z "${DOCKER_URL}" ]]; then
3439
echo "DOCKER_URL environment variable is not set; building image to interuss/monitoring..."
3540
./monitoring/build.sh
@@ -41,7 +46,7 @@ else
4146
echo "Building image ${TAG}"
4247
./monitoring/build.sh "${TAG}"
4348

44-
echo "Pushing docker image ${TAG}..."
49+
# echo "Pushing docker image ${TAG}..."
4550
docker image push "${TAG}"
4651

4752
echo "Built and pushed docker image ${TAG}"
@@ -59,13 +64,13 @@ else
5964

6065
fi
6166

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
67+
# if [[ "${DOCKER_UPDATE_LATEST}" == "true" ]]; then
68+
# echo "Tagging docker image ${DOCKER_URL}/monitoring:${LATEST_TAG}..."
69+
# docker tag "${TAG}" "${DOCKER_URL}/monitoring:${LATEST_TAG}"
70+
#
71+
# echo "Pushing docker image ${DOCKER_URL}/monitoring:${LATEST_TAG}..."
72+
# docker image push "${DOCKER_URL}/monitoring:${LATEST_TAG}"
73+
#
74+
# echo "Built and pushed docker image ${DOCKER_URL}/monitoring:${LATEST_TAG}"
75+
# fi
7176
fi

0 commit comments

Comments
 (0)