Skip to content

Update sops-demo

Update sops-demo #118

Workflow file for this run

name: KBOT-CICD
on: push
env:
TARGETARCH: amd64
jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Run test
run: make test
- name: Docker Hub login
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build&Push
env:
APP: "kbot"
REGISTRY: ${{ secrets.DOCKERHUB_USERNAME }}
run: make image push TARGETARCH=$TARGETARCH
- name: Clean
run: make clean TARGETARCH=$TARGETARCH
cd:
name: CD
needs: ci
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: echo "VERSION=$(git describe --tags --abbrev=0)-$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- uses: mikefarah/yq@master
with:
cmd: yq -i '.image.tag=strenv(VERSION) | .image.arch=strenv(TARGETARCH)' helm/values.yaml
- run: |
git config user.name github-actions
git config user.email [email protected]
git commit -am "update version $VERSION"
git push