Skip to content

Commit

Permalink
Testing method to share tag between repos
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nataliejschultz committed Apr 4, 2024
1 parent 4a1005e commit d4dad4a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/image_build_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit d4dad4a

Please sign in to comment.