From 88b1399af5056a0aba093aed13e3e62794554463 Mon Sep 17 00:00:00 2001 From: Nicko Guyer Date: Mon, 3 Jan 2022 15:03:21 -0500 Subject: [PATCH] Fetch full history on all GitHub Actions Signed-off-by: Nicko Guyer --- .github/workflows/docker_main.yml | 10 ++++++---- .github/workflows/docker_release.yml | 10 ++++++---- .github/workflows/go.yml | 2 ++ .github/workflows/helm.yml | 2 ++ .github/workflows/integration.yml | 8 +++++--- 5 files changed, 21 insertions(+), 11 deletions(-) diff --git a/.github/workflows/docker_main.yml b/.github/workflows/docker_main.yml index a6b87279d7..f3d75c3dc5 100644 --- a/.github/workflows/docker_main.yml +++ b/.github/workflows/docker_main.yml @@ -10,6 +10,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Set build tag id: build_tag_generator @@ -25,16 +27,16 @@ jobs: --label build_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \ --label tag=${{ steps.build_tag_generator.outputs.BUILD_TAG }} \ --tag ghcr.io/hyperledger/firefly:${{ steps.build_tag_generator.outputs.BUILD_TAG }} . - + - name: Tag release run: docker tag ghcr.io/hyperledger/firefly:${{ steps.build_tag_generator.outputs.BUILD_TAG }} ghcr.io/hyperledger/firefly:head - + - name: Push docker image run: | echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin docker push ghcr.io/hyperledger/firefly:${{ steps.build_tag_generator.outputs.BUILD_TAG }} - + - name: Push head tag run: | echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin - docker push ghcr.io/hyperledger/firefly:head \ No newline at end of file + docker push ghcr.io/hyperledger/firefly:head diff --git a/.github/workflows/docker_release.yml b/.github/workflows/docker_release.yml index 02a8440a88..a02df614b8 100644 --- a/.github/workflows/docker_release.yml +++ b/.github/workflows/docker_release.yml @@ -9,6 +9,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Build run: | @@ -17,18 +19,18 @@ jobs: --label build_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \ --label tag=${GITHUB_REF##*/} \ --tag ghcr.io/hyperledger/firefly:${GITHUB_REF##*/} . - + - name: Tag release if: github.event.action == 'released' run: docker tag ghcr.io/hyperledger/firefly:${GITHUB_REF##*/} ghcr.io/hyperledger/firefly:latest - + - name: Push docker image run: | echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin docker push ghcr.io/hyperledger/firefly:${GITHUB_REF##*/} - + - name: Push latest tag if: github.event.action == 'released' run: | echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin - docker push ghcr.io/hyperledger/firefly:latest \ No newline at end of file + docker push ghcr.io/hyperledger/firefly:latest diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index b4a7e48f25..779cd5bc60 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -12,6 +12,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Set up Go uses: actions/setup-go@v2 diff --git a/.github/workflows/helm.yml b/.github/workflows/helm.yml index 9679d4bf14..66bfa63f24 100644 --- a/.github/workflows/helm.yml +++ b/.github/workflows/helm.yml @@ -11,6 +11,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: setup helm uses: azure/setup-helm@v1 diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 579ec6f7d5..cba5bdf539 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -4,7 +4,7 @@ on: push: branches: [scheduled-e2e] schedule: - - cron: '0 0 * * *' + - cron: "0 0 * * *" workflow_dispatch: jobs: @@ -23,17 +23,19 @@ jobs: fail-fast: false steps: - uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Set up Go uses: actions/setup-go@v2 with: go-version: 1.16 - + - name: Update manifest to latest commit for every service run: ./manifestgen.sh head - name: Pull latests FireFly build - run: | + run: | docker pull ghcr.io/hyperledger/firefly:head docker tag ghcr.io/hyperledger/firefly:head hyperledger/firefly