Skip to content

Commit

Permalink
Install notary
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjohnson committed Nov 21, 2024
1 parent dfa47e9 commit d2169e9
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Jenkinsfile.release
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ void pushImage(String imageName) {

withCredentials([string(credentialsId: 'nexus-iq-server_dct_reg_pw', variable: 'DOCKER_CONTENT_TRUST_REPOSITORY_PASSPHRASE')]) {
sh """
curl -L https://go.dev/dl/go1.23.3.linux-amd64.tar.gz | tar -xzf -
export PATH=${env.PATH}:${env.WORKSPACE}/go/bin:${env.WORKSPACE}/bin
export GOPATH=${env.WORKSPACE}
go install -tags pkcs11 github.com/theupdateframework/notary/cmd/notary@latest
notary --help
docker buildx create --use --driver-opt image=${sonatypeDockerRegistryId()}/moby/buildkit
./build_and_push_images.sh ${env.VERSION} latest
"""
Expand Down
5 changes: 5 additions & 0 deletions Jenkinsfile.slim.release
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ void pushImage(String imageName) {

withCredentials([string(credentialsId: 'nexus-iq-server_dct_reg_pw', variable: 'DOCKER_CONTENT_TRUST_REPOSITORY_PASSPHRASE')]) {
sh """
curl -L https://go.dev/dl/go1.23.3.linux-amd64.tar.gz | tar -xzf -
export PATH=${env.PATH}:${env.WORKSPACE}/go/bin:${env.WORKSPACE}/bin
export GOPATH=${env.WORKSPACE}
go install -tags pkcs11 github.com/theupdateframework/notary/cmd/notary@latest
notary --help
docker buildx create --use --driver-opt image=${sonatypeDockerRegistryId()}/moby/buildkit
./build_and_push_images.sh ${env.VERSION} latest
"""
Expand Down
17 changes: 16 additions & 1 deletion build_and_push_images.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
#!/bin/bash -
#!/usr/bin/env bash
#
# Copyright (c) 2017-present Sonatype, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# This script expects that docker trust keys have already been loaded

Expand Down

0 comments on commit d2169e9

Please sign in to comment.