Skip to content

Commit

Permalink
Upload artifact testing - 1
Browse files Browse the repository at this point in the history
Removed testing set to execute on push to image-push-merge.
Testing whether artifacts are uploaded.
Skipping image build and push for test purposes.
  • Loading branch information
Mahadik, Mukul Chandrakant authored and Mahadik, Mukul Chandrakant committed Apr 25, 2024
1 parent 2fdb469 commit 0e16f9e
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 16 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/image_build_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,24 @@ jobs:
run: echo running in repo ${GITHUB_REPOSITORY#*/} branch ${GITHUB_REF##*/} on ${{ steps.date.outputs.date }}

# Runs a set of commands using the runners shell
- name: build docker image
run: |
docker build -t $DOCKER_USER/${GITHUB_REPOSITORY#*/}:${GITHUB_REF##*/}_${{ steps.date.outputs.date }} .
docker images
- name: push docker image
run: |
docker push $DOCKER_USER/${GITHUB_REPOSITORY#*/}:${GITHUB_REF##*/}_${{ steps.date.outputs.date }}
# - name: build docker image
# run: |
# docker build -t $DOCKER_USER/${GITHUB_REPOSITORY#*/}:${GITHUB_REF##*/}_${{ steps.date.outputs.date }} .
# docker images

# - name: push docker image
# run: |
# docker push $DOCKER_USER/${GITHUB_REPOSITORY#*/}:${GITHUB_REF##*/}_${{ steps.date.outputs.date }}


- name: Create a text file
run: |
echo "hello world" > tag_file.txt
echo "Created tag text file"

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: docker-image-tag
path: docker_tag.txt
overwrite: true
4 changes: 2 additions & 2 deletions .github/workflows/test-with-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ name: test-with-docker
# events but only for the master branch
on:
push:
branches: [ image-push-merge ]
branches: [ master ]
pull_request:
branches: [ image-push-merge ]
branches: [ master ]
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '5 4 * * 0'
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test-with-manual-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ name: ubuntu-only-test-with-manual-install
on:
push:
branches:
# - master
# - gis-based-mode-detection
- image-push-merge
- master
- gis-based-mode-detection
# - image-push-merge
pull_request:
branches:
# - master
# - gis-based-mode-detection
- image-push-merge
- master
- gis-based-mode-detection
# - image-push-merge
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '5 4 * * 0'
Expand Down

0 comments on commit 0e16f9e

Please sign in to comment.