Bump kind to v0.23.0 #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: "Build" | |
on: | |
push: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build_image: | |
name: Build k8s-toolbox desk | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Build image | |
run: | | |
./_desk/build-image.sh | |
- name: Login to DockerHub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.REGISTRY_USERNAME }} | |
password: ${{ secrets.REGISTRY_TOKEN }} | |
- name: Push images to container registry | |
run: | | |
./_desk/push-image.sh | |
utest: | |
name: Run unit tests | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: '^1.20.3' | |
- run: go version | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Run unit tests | |
run: | | |
go test ./... | |
- name: Build and install k8s-toolbox | |
run: | | |
go install . | |