7 Commits

Author SHA1 Message Date
mainnika 362920bccf Disable release job trigger 2024-08-24 22:18:04 +02:00
mainnika 571b8069e2 Add QEMU setup for multi-platform support in Docker build process.
- Added step to set up QEMU for multi-platform builds
- Updated Docker build configuration to include linux/amd64 and linux/arm64 platforms
2024-08-24 22:17:39 +02:00
mainnika 55f3901e0d Add helm install flag in Jenkinsfile
Include the helm install flag in the Jenkinsfile pipeline step for deploying applications.
2024-08-24 21:50:34 +02:00
mainnika e1e852cece Update tar extraction command in Jenkinsfile
Changed the order of arguments in the tar extraction command to ensure correct file placement.
2024-08-24 21:46:39 +02:00
mainnika 3a6bc59683 Add creation of directory before extracting files in Jenkinsfile
Created a new directory before extracting files to ensure successful file extraction during the build process in Jenkins.
2024-08-24 21:30:09 +02:00
mainnika 576b795f5f Update actions versions and Docker setup in workflow
- Updated actions versions for checkout, Python setup, Docker buildx, and Docker login.
- Updated docker/build-push-action version to v6.
- Removed signing step for published Docker image.
2024-08-24 21:23:36 +02:00
mainnika a09e3e799e Update Helm version and Jenkins agent label
Changed the Helm download URL to v3.14.0 and updated the Jenkins agent label to "kube0".
2024-08-24 21:18:28 +02:00
2 changed files with 16 additions and 19 deletions
+11 -16
View File
@@ -22,23 +22,22 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: '3.12'
- name: Install cosign
if: github.event_name != 'pull_request'
uses: sigstore/cosign-installer@main
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
@@ -71,7 +70,7 @@ jobs:
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v6
with:
context: .
build-args: |
@@ -79,15 +78,11 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- 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 }}
platforms: linux/amd64,linux/arm64
- name: Trigger release job
if: ${{ success() && github.ref_name == 'main' && github.event_name != 'pull_request' && !github.event.repository.private }}
if: false
# 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 }}
+5 -3
View File
@@ -1,10 +1,10 @@
def HELM_DOWNLOAD_URL = "https://get.helm.sh/helm-v3.7.2-linux-amd64.tar.gz"
def HELM_DOWNLOAD_URL = "https://get.helm.sh/helm-v3.14.0-linux-amd64.tar.gz"
def WS_DIST = ".dist"
def WS_BIN = ".bin"
def WS_SCM = ".scm"
pipeline {
agent { label "k8s" }
agent { label "kube0" }
parameters {
string(
@@ -40,7 +40,8 @@ pipeline {
dir("${WS_DIST}") {
sh """
curl -fsSL -O "${HELM_DOWNLOAD_URL}";
tar xfz -C "${env.WORKSPACE}/${WS_BIN}" *;
mkdir -p "${env.WORKSPACE}/${WS_BIN}";
tar xfz * -C "${env.WORKSPACE}/${WS_BIN}";
ls -lah "${env.WORKSPACE}/${WS_BIN}/linux-amd64/helm";
"""
deleteDir()
@@ -73,6 +74,7 @@ pipeline {
sh """
"${env.WORKSPACE}/${WS_BIN}/linux-amd64/helm" upgrade ${params.RELEASE_NAME} * \
--namespace ${params.RELEASE_NAMESPACE} \
--install \
--create-namespace \
--dependency-update \
--reset-values \