Skip to content

Commit 4fe2add

Browse files
authored
update push-env workflow version (#45)
* update push-env workflow version * change SHARED_SHA command in Makefile
1 parent c1e2faf commit 4fe2add

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.github/workflows/api-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
name: Push Staging Image (API)
8787
needs: [api-build, api-test]
8888
if: ${{ inputs.skip == false && github.event_name == 'push' && github.event.ref == 'refs/heads/staging' && github.repository_owner == 'codecov' }}
89-
uses: codecov/gha-workflows/.github/workflows/[email protected].36
89+
uses: codecov/gha-workflows/.github/workflows/[email protected].37
9090
secrets: inherit
9191
with:
9292
environment: staging
@@ -99,7 +99,7 @@ jobs:
9999
name: Push Production Image (API)
100100
needs: [api-build, api-test]
101101
if: ${{ inputs.skip == false && github.event_name == 'push' && github.event.ref == 'refs/heads/main' && github.repository_owner == 'codecov' }}
102-
uses: codecov/gha-workflows/.github/workflows/[email protected].36
102+
uses: codecov/gha-workflows/.github/workflows/[email protected].37
103103
secrets: inherit
104104
with:
105105
environment: production

.github/workflows/worker-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
name: Push Staging Image (Worker)
8686
needs: [worker-build, worker-test]
8787
if: ${{ inputs.skip == false && github.event_name == 'push' && (github.event.ref == 'refs/heads/main' || github.event.ref == 'refs/heads/staging') && github.repository_owner == 'codecov' }}
88-
uses: codecov/gha-workflows/.github/workflows/[email protected].36
88+
uses: codecov/gha-workflows/.github/workflows/[email protected].37
8989
secrets: inherit
9090
with:
9191
environment: staging
@@ -98,7 +98,7 @@ jobs:
9898
name: Push Production Image (Worker)
9999
needs: [worker-build, worker-test]
100100
if: ${{ inputs.skip == false && github.event_name == 'push' && github.event.ref == 'refs/heads/main' && github.repository_owner == 'codecov' }}
101-
uses: codecov/gha-workflows/.github/workflows/[email protected].36
101+
uses: codecov/gha-workflows/.github/workflows/[email protected].37
102102
secrets: inherit
103103
with:
104104
environment: production

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ export branch := $(shell git branch | grep \* | cut -f2 -d' ')
99

1010
export DOCKER_BUILDKIT=1
1111

12-
export SHARED_SHA := $(shell git archive --format=tar HEAD libs/shared | sha1sum | head -c 40)
12+
# If we haven't cut over yet, this requires that the submodules are initialized.
13+
# If you see a bunch of "tar: ...: Cannot stat: No such file or directory" errors,
14+
# run `git submodule update --init`
15+
export SHARED_SHA := $(shell git ls-files --recurse-submodules libs/shared | sort | xargs sha1sum | cut -d ' ' -f 1 | sha1sum | head -c 40)
1316
export DOCKER_REQS_SHA := $(shell sha1sum docker/Dockerfile.requirements | head -c 40)
1417

1518
# Generic target for building a requirements image. You probably want

0 commit comments

Comments
 (0)