Merge pull request #6403 from onflow/bastian/update-v0.37 #703
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: CD | |
on: | |
push: | |
tags: | |
- '*' | |
- "!daily-*" | |
env: | |
GO_VERSION: "1.22" | |
jobs: | |
docker-push: | |
name: Push to container registry | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
timeout-minutes: 10 # fail fast. sometimes this step takes an extremely long time | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
# Provide Google Service Account credentials to Github Action, allowing interaction with the Google Container Registry | |
# Logging in as github-actions@dl-flow.iam.gserviceaccount.com | |
- id: auth | |
uses: google-github-actions/auth@v1 | |
with: | |
credentials_json: ${{ secrets.GCR_SERVICE_KEY_SECRET }} | |
- name: Set up Google Cloud SDK | |
uses: google-github-actions/setup-gcloud@v1 | |
- name: Authenticate docker with gcloud | |
run: | | |
gcloud auth configure-docker | |
- name: Docker build | |
env: | |
CADENCE_DEPLOY_KEY: ${{ secrets.CADENCE_DEPLOY_KEY }} | |
run: | | |
make docker-build-flow-with-adx | |
make docker-build-flow-without-adx | |
make docker-build-flow-without-netgo-without-adx | |
make docker-cross-build-flow-arm | |
- name: Docker push | |
run: | | |
make docker-push-flow-with-adx | |
make docker-push-flow-without-adx | |
make docker-push-flow-without-netgo-without-adx | |
make docker-push-flow-arm |