Skip to content

Commit

Permalink
chart is being moved to equinixmetal-helm/governor (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfunkhouser authored Aug 14, 2023
1 parent 0cb8761 commit 99b52f5
Show file tree
Hide file tree
Showing 16 changed files with 56 additions and 501 deletions.
129 changes: 56 additions & 73 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,81 +3,64 @@ env:
IMAGE_REPO: ghcr.io/metal-toolbox/${APP_NAME}
IMAGE_TAG: ${BUILDKITE_BUILD_NUMBER}-${BUILDKITE_COMMIT:0:8}

steps:
- group: ":golang: Application"
key: "app"
steps:
- label: ":golangci-lint: lint :lint-roller:"
key: "lint"
plugins:
- docker#v5.8.0:
image: "registry.hub.docker.com/golangci/golangci-lint:v1.53-alpine"
command: ["golangci-lint", "run", "-v", "--timeout", "5m"]

- label: ":test_tube: test"
key: "test"
plugins:
- docker-compose#v4.14.0:
cli-version: 2
run: go
config: docker-compose-ci.yml
command: ["make", "ci-test"]
steps:
- label: ":golangci-lint: lint :lint-roller:"
key: "lint"
plugins:
- docker#v5.8.0:
image: "registry.hub.docker.com/golangci/golangci-lint:v1.53-alpine"
command: ["golangci-lint", "run", "-v", "--timeout", "5m"]

- label: ":golang: build"
key: "gobuild"
artifact_paths: "bin/${APP_NAME}"
plugins:
- docker#v5.8.0:
image: "golang:1.20"
environment:
- CGO_ENABLED=0
- GOOS=linux
command: ["go", "build", "-buildvcs=false", "-mod=mod", "-a", "-o", "bin/$APP_NAME"]
- label: ":test_tube: test"
key: "test"
plugins:
- docker-compose#v4.14.0:
cli-version: 2
run: go
config: docker-compose-ci.yml
command: ["make", "ci-test"]

- label: ":docker: docker build and publish"
key: "build"
depends_on: ["lint", "test", "gobuild"]
env:
BUILDKITE_PLUGINS_ALWAYS_CLONE_FRESH: "true"
commands: |
#!/bin/bash
echo --- Retrieve Artifacts
buildkite-agent artifact download "bin/${APP_NAME}" .
# move it to where we expect and make sure it is executable
cp bin/${APP_NAME} ${APP_NAME}
chmod +x ${APP_NAME}
plugins:
- docker-login#v2.1.0:
username: metal-buildkite
password-env: SECRET_GHCR_PUBLISH_TOKEN
server: ghcr.io
- equinixmetal-buildkite/docker-metadata#v1.0.0:
images:
- "${IMAGE_REPO}"
extra_tags:
- "${IMAGE_TAG}"
- equinixmetal-buildkite/docker-build#v1.1.0:
push: true
build-args:
- NAME=${APP_NAME}
- equinixmetal-buildkite/trivy#v1.18.2:
severity: CRITICAL,HIGH
ignore-unfixed: true
security-checks: config,secret,vuln
skip-files: 'cosign.key,Dockerfile.dev'
- label: ":golang: build"
key: "gobuild"
artifact_paths: "bin/${APP_NAME}"
plugins:
- docker#v5.8.0:
image: "golang:1.20"
environment:
- CGO_ENABLED=0
- GOOS=linux
command: ["go", "build", "-buildvcs=false", "-mod=mod", "-a", "-o", "bin/$APP_NAME"]

- group: ":helm: Helm Chart"
key: "chart"
steps:
- label: ":helm: Helm Tarball Update"
key: "helm-dep-up"
plugins:
equinixmetal-buildkite/helm-tar-update#v0.0.1: {}
- label: ":docker: docker build and publish"
key: "build"
depends_on: ["lint", "test", "gobuild"]
env:
BUILDKITE_PLUGINS_ALWAYS_CLONE_FRESH: "true"
commands: |
#!/bin/bash
echo --- Retrieve Artifacts
buildkite-agent artifact download "bin/${APP_NAME}" .
# move it to where we expect and make sure it is executable
cp bin/${APP_NAME} ${APP_NAME}
chmod +x ${APP_NAME}
plugins:
- docker-login#v2.1.0:
username: metal-buildkite
password-env: SECRET_GHCR_PUBLISH_TOKEN
server: ghcr.io
- equinixmetal-buildkite/docker-metadata#v1.0.0:
images:
- "${IMAGE_REPO}"
extra_tags:
- "${IMAGE_TAG}"
- equinixmetal-buildkite/docker-build#v1.1.0:
push: true
build-args:
- NAME=${APP_NAME}
- equinixmetal-buildkite/trivy#v1.18.2:
severity: CRITICAL,HIGH
ignore-unfixed: true
security-checks: config,secret,vuln
skip-files: 'cosign.key,Dockerfile.dev'

- label: ":helm: lint"
depends_on:
- helm-dep-up
plugins:
- docker#v5.7.0:
image: "alpine/helm"
command: ["lint", "chart/governor-api"]
2 changes: 0 additions & 2 deletions .trivyignore

This file was deleted.

2 changes: 0 additions & 2 deletions chart/governor-api/.trivyignore

This file was deleted.

9 changes: 0 additions & 9 deletions chart/governor-api/Chart.lock

This file was deleted.

16 changes: 0 additions & 16 deletions chart/governor-api/Chart.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions chart/governor-api/README.md

This file was deleted.

Binary file removed chart/governor-api/charts/common-2.4.0.tgz
Binary file not shown.
Binary file not shown.
5 changes: 0 additions & 5 deletions chart/governor-api/renovate.json

This file was deleted.

51 changes: 0 additions & 51 deletions chart/governor-api/templates/configmap.yml

This file was deleted.

128 changes: 0 additions & 128 deletions chart/governor-api/templates/deployment.yml

This file was deleted.

32 changes: 0 additions & 32 deletions chart/governor-api/templates/ingress.yml

This file was deleted.

Loading

0 comments on commit 99b52f5

Please sign in to comment.