Add addresses fields to status #159
Workflow file for this run
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: CI | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21' | |
- run: make test | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21' | |
- uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.55 | |
integration: | |
runs-on: ubuntu-latest | |
needs: | |
- test | |
- lint | |
steps: | |
- uses: engineerd/[email protected] | |
with: | |
version: "v0.20.0" | |
image: 'kindest/node:v1.24.15' | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21' | |
- name: Setup | |
run: | | |
kubectl create namespace nginx-operator-system | |
make install docker-build | |
kind load docker-image ${IMAGE}:${TAG} | |
(cd ./config/manager && kustomize edit set image controller=${IMAGE}:${TAG}) | |
kind load docker-image ${IMAGE}:${TAG} | |
make deploy | |
env: | |
IMAGE: tsuru/nginx-operator | |
TAG: integration | |
- run: | | |
NGINX_OPERATOR_INTEGRATION=1 make test | |
docker-image: | |
runs-on: ubuntu-latest | |
needs: | |
- test | |
- lint | |
- integration | |
if: github.event_name != 'pull_request' | |
steps: | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- uses: actions/checkout@v3 | |
- uses: Surgo/docker-smart-tag-action@v1 | |
id: smarttag | |
with: | |
docker_image: tsuru/nginx-operator | |
default_branch: main | |
tag_with_sha: "true" | |
- uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
- uses: docker/build-push-action@v4 | |
with: | |
push: true | |
platforms: linux/amd64,linux/arm64 | |
tags: ${{ steps.smarttag.outputs.tag }} | |
build-args: |- | |
VERSION=${{ github.ref_name }} | |
GIT_COMMIT=${{ github.sha }} |