Skip to content

Commit

Permalink
First attempt at docker push
Browse files Browse the repository at this point in the history
  • Loading branch information
dmerrick committed Jan 15, 2021
1 parent 586c3c1 commit bb4d00c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,21 @@ jobs:
# run: curl -v https://tripbot:8080/health
# - name: Run test suite
# run: docker exec tripbot go test ./...

push:
name: Push Docker images
needs: build
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
steps:
#TODO: do I need this?
- id: get-ref
uses: ankitvgupta/ref-to-tag-action@master
with:
ref: ${{ github.ref }}
head_ref: ${{ github.head_ref }}
- name: Push Docker images
env:
VERSION_TAG: ${{ steps.get-ref.outputs.tag }}
run: |
docker-compose --project-directory . --env-file infra/docker/env.docker -f infra/docker/docker-compose.yml -f infra/docker/docker-compose.testing.yml -f infra/docker/docker-compose.github.yml push

0 comments on commit bb4d00c

Please sign in to comment.