mirror of
https://github.com/mainnika/nikita-tokarch-uk.git
synced 2026-06-22 03:54:57 +00:00
Compare commits
7 Commits
c9748046b1
...
362920bccf
| Author | SHA1 | Date | |
|---|---|---|---|
|
362920bccf
|
|||
|
571b8069e2
|
|||
|
55f3901e0d
|
|||
|
e1e852cece
|
|||
|
3a6bc59683
|
|||
|
576b795f5f
|
|||
|
a09e3e799e
|
@@ -22,23 +22,22 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.8'
|
python-version: '3.12'
|
||||||
|
|
||||||
- name: Install cosign
|
- name: Set up QEMU
|
||||||
if: github.event_name != 'pull_request'
|
uses: docker/setup-qemu-action@v3
|
||||||
uses: sigstore/cosign-installer@main
|
|
||||||
|
|
||||||
- name: Setup Docker buildx
|
- name: Setup Docker buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Log into registry ${{ env.REGISTRY }}
|
- name: Log into registry ${{ env.REGISTRY }}
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.REGISTRY }}
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
@@ -71,7 +70,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
id: build-and-push
|
id: build-and-push
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
build-args: |
|
build-args: |
|
||||||
@@ -79,15 +78,11 @@ jobs:
|
|||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
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
|
- 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
|
uses: toptal/jenkins-job-trigger-action@master
|
||||||
with:
|
with:
|
||||||
jenkins_url: ${{ secrets.JENKINS_URL }}
|
jenkins_url: ${{ secrets.JENKINS_URL }}
|
||||||
|
|||||||
Vendored
+5
-3
@@ -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_DIST = ".dist"
|
||||||
def WS_BIN = ".bin"
|
def WS_BIN = ".bin"
|
||||||
def WS_SCM = ".scm"
|
def WS_SCM = ".scm"
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent { label "k8s" }
|
agent { label "kube0" }
|
||||||
|
|
||||||
parameters {
|
parameters {
|
||||||
string(
|
string(
|
||||||
@@ -40,7 +40,8 @@ pipeline {
|
|||||||
dir("${WS_DIST}") {
|
dir("${WS_DIST}") {
|
||||||
sh """
|
sh """
|
||||||
curl -fsSL -O "${HELM_DOWNLOAD_URL}";
|
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";
|
ls -lah "${env.WORKSPACE}/${WS_BIN}/linux-amd64/helm";
|
||||||
"""
|
"""
|
||||||
deleteDir()
|
deleteDir()
|
||||||
@@ -73,6 +74,7 @@ pipeline {
|
|||||||
sh """
|
sh """
|
||||||
"${env.WORKSPACE}/${WS_BIN}/linux-amd64/helm" upgrade ${params.RELEASE_NAME} * \
|
"${env.WORKSPACE}/${WS_BIN}/linux-amd64/helm" upgrade ${params.RELEASE_NAME} * \
|
||||||
--namespace ${params.RELEASE_NAMESPACE} \
|
--namespace ${params.RELEASE_NAMESPACE} \
|
||||||
|
--install \
|
||||||
--create-namespace \
|
--create-namespace \
|
||||||
--dependency-update \
|
--dependency-update \
|
||||||
--reset-values \
|
--reset-values \
|
||||||
|
|||||||
Reference in New Issue
Block a user