From d4dad4ac8bd6f526db6f0bd424b9aac794ca0ba3 Mon Sep 17 00:00:00 2001 From: Natalie Schultz <90212258+nataliejschultz@users.noreply.github.com> Date: Thu, 4 Apr 2024 16:08:58 -0600 Subject: [PATCH] Testing method to share tag between repos This is the first part of the method to share the server image tag between other repositories. It would be shared as tag.txt, which gets overwritten every time the image build runs. --- .github/workflows/image_build_push.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/image_build_push.yml b/.github/workflows/image_build_push.yml index 3b991786a..c5f2dc74a 100644 --- a/.github/workflows/image_build_push.yml +++ b/.github/workflows/image_build_push.yml @@ -6,7 +6,7 @@ name: docker image # events but only for the master branch on: push: - branches: [ master, gis-based-mode-detection ] + branches: [ master, gis-based-mode-detection, consolidate-differences ] # Env variable @@ -46,3 +46,14 @@ jobs: - name: push docker image run: | docker push $DOCKER_USER/${GITHUB_REPOSITORY#*/}:${GITHUB_REF##*/}_${{ steps.date.outputs.date }} + + - name: Write tag file + run: | + echo 'foo bar' > tag.txt + + - uses: actions/upload-artifact@v4 + with: + name: Create tag artifact + path: tag.txt + if-no-files-found: error + overwrite: true