updated docker env for local development #63
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: [push, pull_request, workflow_dispatch] #workflow_dispatch works only if its active in the main branch | |
jobs: | |
Docker-Test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Docker Hub Login | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | |
- name: Set Docker Image Version | |
run: | | |
source ci/set-docker-image-version.sh | |
echo "version=${DOCKER_IMG_VER}" >> $GITHUB_ENV | |
- name: Build Docker Image | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
builder: ${{ steps.buildx.outputs.name }} | |
push: true | |
tags: ga4gh/ga4gh-testbed-ui:${{ env.version }} | |
build-args: VERSION=${{ env.version }} | |
cache-from: type=gha #GitHub Actions Cache Exporter | |
cache-to: type=gha,mode=max | |
- name: Start Services | |
run: docker-compose up -d |