Skip to content

Commit

Permalink
new action
Browse files Browse the repository at this point in the history
  • Loading branch information
btungut committed Nov 17, 2023
1 parent e77bed3 commit fd7f402
Showing 1 changed file with 12 additions and 26 deletions.
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
name: CI Feature & Release Branches
name: CI Release Branches

on:
workflow_dispatch: {}
push:
branches:
- feature/*
- release/*
paths:
- "src/**"
- "Dockerfile"
workflow_dispatch:
inputs:
docker-build-only:
description: 'docker build only'
required: true
default: false
type: boolean

run-name: ${{ format('{0} {01}-r{02}', github.ref_name, github.run_number, github.run_attempt) }}
run-name: ${{ format('{0}-{01}-r{02}', github.ref_name, github.run_number, github.run_attempt) }}

env:
HELM_DIR: "chart"
HELM_TEMPLATE_VALUES: "--set runner.organizationUrl=https://github.com/btungut --set runner.name=TestRunnerName --set runner.token=ABC123"

jobs:
docker:
name: docker build and push
name: docker build
uses: btungut/devops/.github/workflows/workflow-docker-build-push.yml@master

with:
runs-on: ubuntu-latest
app-name: github-runner-on-kubernetes
Expand All @@ -28,6 +28,7 @@ jobs:
docker-server: ${{ vars.DOCKER_SERVER }}
docker-username: ${{ vars.DOCKER_USERNAME }}
docker-repository: ${{ vars.DOCKER_REPOSITORY }}
docker-build-only: ${{ github.event.inputs.docker-build-only }}
secrets:
docker-password: ${{ secrets.DOCKER_PASSWORD }}

Expand All @@ -54,21 +55,6 @@ jobs:
with:
gitToken: ${{ secrets.GITHUB_TOKEN }}

- name: validate helm chart
shell: bash
run: |
set -euo pipefail
[[ -d $HELM_DIR ]] || { echo "helm chart directory not found"; exit 1; }
cd $HELM_DIR
[[ -f Chart.yaml ]] || { echo "Chart.yaml not found"; exit 1; }
[[ -f values.yaml ]] || { echo "values.yaml not found"; exit 1; }
echo "Chart.yaml and values.yaml found"
echo "helm dependency update is running..."
helm dependency update .
working-directory: app

- name: helm modify
id: helm-modify
shell: bash
Expand Down

0 comments on commit fd7f402

Please sign in to comment.