Skip to content

fix networking

fix networking #12

Workflow file for this run

name: Docker Build
on:
push:
branches: [master, dev]
jobs:
docker_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Extract environment
shell: bash
run: echo "##[set-output name=env;]$([ "${GITHUB_REF##*/}" == "master" ] && echo "prod" || echo "beta")"
id: extract_environment
- name: Extract Repo Name
shell: bash
run: echo "##[set-output name=repo;]$(echo ${GITHUB_REPOSITORY##*/})"
id: extract_repo
- name: Push to Docker Hub
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: ${{ secrets.DOCKER_USERNAME }}/${{ steps.extract_repo.outputs.repo }}
tags: ${{ steps.extract_environment.outputs.env }}