Compare commits

..

No commits in common. '362920bccffc0a85c3dfd07ee08ec2cd2ce07f64' and 'c9748046b1375a0fe318c385aa1e4de9da2623a3' have entirely different histories.

  1. 27
      .github/workflows/image-make-and-publish.yml
  2. 8
      .jenkins/Jenkinsfile

@ -22,22 +22,23 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v2
with:
python-version: '3.12'
python-version: '3.8'
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Install cosign
if: github.event_name != 'pull_request'
uses: sigstore/cosign-installer@main
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@v1
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
@ -70,7 +71,7 @@ jobs:
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@v6
uses: docker/build-push-action@v2
with:
context: .
build-args: |
@ -78,11 +79,15 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
- name: Sign the published Docker image
if: ${{ github.event_name != 'pull_request' && !github.event.repository.private }}
env:
COSIGN_EXPERIMENTAL: "true"
run: cosign sign ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.build-and-push.outputs.digest }}
- name: Trigger release job
if: false
# if: ${{ success() && github.ref_name == 'main' && github.event_name != 'pull_request' && !github.event.repository.private }}
if: ${{ success() && github.ref_name == 'main' && github.event_name != 'pull_request' && !github.event.repository.private }}
uses: toptal/jenkins-job-trigger-action@master
with:
jenkins_url: ${{ secrets.JENKINS_URL }}

@ -1,10 +1,10 @@
def HELM_DOWNLOAD_URL = "https://get.helm.sh/helm-v3.14.0-linux-amd64.tar.gz"
def HELM_DOWNLOAD_URL = "https://get.helm.sh/helm-v3.7.2-linux-amd64.tar.gz"
def WS_DIST = ".dist"
def WS_BIN = ".bin"
def WS_SCM = ".scm"
pipeline {
agent { label "kube0" }
agent { label "k8s" }
parameters {
string(
@ -40,8 +40,7 @@ pipeline {
dir("${WS_DIST}") {
sh """
curl -fsSL -O "${HELM_DOWNLOAD_URL}";
mkdir -p "${env.WORKSPACE}/${WS_BIN}";
tar xfz * -C "${env.WORKSPACE}/${WS_BIN}";
tar xfz -C "${env.WORKSPACE}/${WS_BIN}" *;
ls -lah "${env.WORKSPACE}/${WS_BIN}/linux-amd64/helm";
"""
deleteDir()
@ -74,7 +73,6 @@ pipeline {
sh """
"${env.WORKSPACE}/${WS_BIN}/linux-amd64/helm" upgrade ${params.RELEASE_NAME} * \
--namespace ${params.RELEASE_NAMESPACE} \
--install \
--create-namespace \
--dependency-update \
--reset-values \

Loading…
Cancel
Save