Skip to content

Commit

Permalink
Make sure docker image is tested on branches other than develop
Browse files Browse the repository at this point in the history
On branches other than "develop" branch it would pull image from dockerhub and
test that instead of using image that was just built
  • Loading branch information
Kirill888 committed May 13, 2021
1 parent cfacac7 commit 80d466a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/docker-test-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,16 @@ jobs:
- name: Verify Docker Image
run: |
# Make sure we test docker image we built
if [[ "${{ steps.build.outputs.docker_image }}" != "opendatacube/datacube-tests:latest" ]]; then
docker tag "${{ steps.build.outputs.docker_image }}" opendatacube/datacube-tests:latest
fi
./check-code.sh --with-docker integration_tests
echo "Verify that twine is installed"
docker run --rm opendatacube/datacube-tests:latest twine --version
- name: DockerHub Login
id: dkr
if: |
Expand Down

0 comments on commit 80d466a

Please sign in to comment.