Skip to content

Commit

Permalink
configure kubeconform
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloxx committed Aug 19, 2024
1 parent b09d133 commit f3cacce
Showing 1 changed file with 40 additions and 38 deletions.
78 changes: 40 additions & 38 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,41 @@
name: Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.21.9' ]

steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

- name: Setup Ko
uses: ko-build/[email protected]

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build Image
env:
IMAGE_REGISTRY_NAMESPACE: angeloxx
IMAGE_REGISTRY: docker.io
IMAGE_TAG_FORCED: latest
run: |
make build-image
- name: Build Helm Chart
env:
IMAGE_REGISTRY_NAMESPACE: angeloxx
IMAGE_REGISTRY: docker.io
IMAGE_TAG_FORCED: latest
run: |
name: Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.21.9' ]

steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

- name: Setup Ko
uses: ko-build/[email protected]
- name: Set up Kubeconform
uses: bmuschko/setup-kubeconform@v1

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build Image
env:
IMAGE_REGISTRY_NAMESPACE: angeloxx
IMAGE_REGISTRY: docker.io
IMAGE_TAG_FORCED: latest
run: |
make build-image
- name: Build Helm Chart
env:
IMAGE_REGISTRY_NAMESPACE: angeloxx
IMAGE_REGISTRY: docker.io
IMAGE_TAG_FORCED: latest
run: |
make build-helm-upload

0 comments on commit f3cacce

Please sign in to comment.