Skip to content

Update module github.com/gophercloud/gophercloud to v1 #20

Update module github.com/gophercloud/gophercloud to v1

Update module github.com/gophercloud/gophercloud to v1 #20

name: Test, Build and Deploy
on: [push]
jobs:
test:
name: Test and Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.21
uses: actions/setup-go@v1
with:
go-version: 1.21
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Get dependencies
run: go mod download
- name: Test
run: go test ./...
- name: Build
run: make build
continuous-delivery:
if: github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')
name: Push Docker Image
runs-on: ubuntu-18.04
needs: test
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
repository: Staffbase/gitops-github-action
ref: v1
token: ${{ secrets.GITOPS_TOKEN }}
path: .github/gitops
- name: GitOps (build, push and deploy a new Docker image)
uses: ./.github/gitops
with:
dockerregistry: docker.io
dockerusername: ${{ secrets.DOCKER_USERNAME }}
dockerpassword: ${{ secrets.DOCKER_PASSWORD }}
dockerimage: staffbace/syseleven-exporter
gitopstoken: ${{ secrets.GITOPS_TOKEN }}
gitopsprod: |-
clusters/customization/prod/mothership/syseleven-exporter/syseleven-exporter-cr.yaml spec.template.spec.containers.syseleven-exporter.image
clusters/customization/prod/mothership/syseleven-exporter/syseleven-exporter-dev-cr.yaml spec.template.spec.containers.syseleven-exporter.image
clusters/customization/prod/mothership/syseleven-exporter/syseleven-exporter-stage-cr.yaml spec.template.spec.containers.syseleven-exporter.image
clusters/customization/prod/mothership/syseleven-exporter/syseleven-exporter-prod-cr.yaml spec.template.spec.containers.syseleven-exporter.image