Adds option to add state postfix #21
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: Continuous Integration | |
on: | |
push: | |
branches: | |
- '**' | |
# - $default-branch | |
pull_request: | |
branches: | |
- '**' | |
# - $default-branch | |
jobs: | |
build: | |
env: | |
COVER: true | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Set up Go 1.19 | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.19.x | |
id: go | |
- name: Get dependencies | |
run: | | |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.50.0 | |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter | |
chmod +x ./cc-test-reporter | |
- name: Verify Code Generation | |
run: | | |
make verify-generate | |
- name: Lint | |
run: | | |
make lint | |
- name: Build | |
run: | | |
make build | |
- name: Test | |
env: | |
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | |
run: | | |
./.github/workflows/test.sh | |
docker: | |
runs-on: ubuntu-20.04 | |
permissions: | |
contents: 'read' | |
id-token: 'write' | |
timeout-minutes: 30 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Setup Google Cloud Auth | |
uses: 'google-github-actions/auth@v2' | |
with: | |
project_id: 'meisterlabs-staging' | |
workload_identity_provider: projects/930405717829/locations/global/workloadIdentityPools/github/providers/github-actions-provider | |
service_account: 'meister-artifact-registry@meisterlabs-staging.iam.gserviceaccount.com' | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Docker Build | |
run: | | |
export IMAGE_TAG=$(echo 'refs/heads/24-04-additional-state' | sed 's/refs\/heads\///') | |
echo $IMAGE_TAG | |
make docker | |
make docker-push |