Skip to content

Commit

Permalink
finally it should all be working
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgleith authored and Alex Leith committed Mar 5, 2020
1 parent 2104c07 commit 2bcbb28
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,20 +78,12 @@ jobs:
password: "${{ secrets.DockerPassword }}"
build_extra_args: "--build-arg=ENVIRONMENT=deployment"

- name: Temporarily log release from that Docker image just built
run: >
docker run --rm -e DATACUBE_DB_URL=postgresql://username:password@hostname:5432/database
${{ env.IMAGE_NAME }}:latest python3 -c 'import cubedash; print(cubedash.__version__)'
- name: Get tag for this build if it exists
if: contains(github.ref, 'cubedash-')
run: >
echo ::set-env name=RELEASE::$(docker run --rm -e DATACUBE_DB_URL=postgresql://username:password@hostname:5432/database
${{ env.IMAGE_NAME }}:latest python3 -c 'import cubedash; print(cubedash.__version__)')
- name: Test the tag
run: echo $RELEASE

- name: Build and Push release if we have a tag
uses: whoan/docker-build-with-cache-action@v4
if: contains(github.ref, 'cubedash-')
Expand Down

0 comments on commit 2bcbb28

Please sign in to comment.