github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/.github/workflows/cd.yml (about)

     1  name: CD
     2  
     3  on:
     4    push:
     5      tags: 
     6        - '*'
     7        - "!daily-*"
     8  
     9  jobs:
    10    docker-push:
    11      name: Push to container registry
    12      runs-on: ubuntu-latest
    13      steps:
    14      - name: Setup Go
    15        uses: actions/setup-go@v4
    16        timeout-minutes: 10 # fail fast. sometimes this step takes an extremely long time
    17        with:
    18          go-version: "1.20"
    19      - name: Checkout repo
    20        uses: actions/checkout@v2
    21      # Provide Google Service Account credentials to Github Action, allowing interaction with the Google Container Registry
    22      # Logging in as github-actions@dl-flow.iam.gserviceaccount.com
    23      - id: auth
    24        uses: google-github-actions/auth@v1
    25        with:
    26          credentials_json: ${{ secrets.GCR_SERVICE_KEY_SECRET }}
    27      - name: Set up Google Cloud SDK
    28        uses: google-github-actions/setup-gcloud@v1
    29      - name: Authenticate docker with gcloud
    30        run: |
    31          gcloud auth configure-docker
    32      - name: Docker build
    33        env:
    34          CADENCE_DEPLOY_KEY: ${{ secrets.CADENCE_DEPLOY_KEY }}
    35        run: |
    36          make docker-build-flow-with-adx
    37          make docker-build-flow-without-adx
    38          make docker-build-flow-without-netgo-without-adx
    39          make docker-cross-build-flow-arm
    40      - name: Docker push
    41        run: |
    42          make docker-push-flow-with-adx
    43          make docker-push-flow-without-adx
    44          make docker-push-flow-without-netgo-without-adx
    45          make docker-push-flow-arm