Skip to content

Commit

Permalink
fix(actions): change test image tag to ci build workflow (#103)
Browse files Browse the repository at this point in the history
Signed-off-by: shubham <[email protected]>
  • Loading branch information
shubham14bajpai authored Apr 7, 2021
1 parent 9ab1d19 commit b3686ef
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 87 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ jobs:
load: true
platforms: linux/amd64
tags: |
${{ env.IMAGE_ORG }}/upgrade:${{ env.TAG }}
${{ env.IMAGE_ORG }}/upgrade:ci
build-args: |
DBUILD_REPO_URL=https://github.com/openebs/upgrade
DBUILD_SITE_URL=https://openebs.io
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ jobs:
load: true
platforms: linux/amd64
tags: |
${{ env.IMAGE_ORG }}/upgrade:${{ env.TAG }}
${{ env.IMAGE_ORG }}/upgrade:ci
build-args: |
DBUILD_REPO_URL=https://github.com/openebs/upgrade
DBUILD_SITE_URL=https://openebs.io
Expand Down
4 changes: 2 additions & 2 deletions ci/upgrade/cstor/pool.tmp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ spec:

# the image version should be same as the --to-version mentioned above
# in the args of the job
image: imageorg/upgrade-amd64:ci
image: imageorg/upgrade:ci
imagePullPolicy: IfNotPresent
restartPolicy: OnFailure
restartPolicy: Never
---

79 changes: 0 additions & 79 deletions ci/upgrade/cstor/pool.yaml

This file was deleted.

5 changes: 3 additions & 2 deletions ci/upgrade/cstor/sanity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ echo "Testing upgrade for org: $IMAGE_ORG version: $TEST_VERSION imagetag: $TEST
# run migration tests
./ci/upgrade/cstor/test.sh
if [ $? != 0 ]; then
kubectl logs --tail=50 -l job-name=upgrade-pool -n openebs
kubectl logs --tail=50 -l job-name=upgrade-volume -n openebs
kubectl logs -l job-name=upgrade-pool -n openebs
kubectl logs -l job-name=upgrade-volume -n openebs
kubectl describe pods -n openebs
exit 1
fi

Expand Down
2 changes: 1 addition & 1 deletion ci/upgrade/cstor/volume.tmp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@ spec:
# in the args of the job
image: imageorg/upgrade:ci
imagePullPolicy: IfNotPresent
restartPolicy: OnFailure
restartPolicy: Never
---

3 changes: 2 additions & 1 deletion ci/upgrade/jiva/sanity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ echo "Testing upgrade for org: $IMAGE_ORG version: $TEST_VERSION imagetag: $TEST
# run migration tests
./ci/upgrade/jiva/test.sh
if [ $? != 0 ]; then
kubectl logs --tail=50 -l job-name=upgrade-volume -n openebs
kubectl logs -l job-name=upgrade-volume -n openebs
kubectl describe pods -n openebs
exit 1
fi

Expand Down

0 comments on commit b3686ef

Please sign in to comment.