feat: add requirements #56
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: Docker | |
on: [push, pull_request] | |
env: | |
ENVIRONMENT: test | |
VERBOSE: true | |
TERM: xterm | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
DOCKER_REGISTRY: ghcr.io | |
DOCKER_USERNAME: ${{ github.actor }} | |
PROJECT: ${{ github.event.repository.name }} | |
jobs: | |
build-docker: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Show ref | |
run: | | |
echo "Checking out $GITHUB_REF..." | |
- name: Login to Registry | |
run: | | |
echo $GITHUB_TOKEN | docker login $DOCKER_REGISTRY -u $DOCKER_USERNAME --password-stdin | |
- name: Build Image | |
run: | | |
make docker-build | |
- name: Push Image | |
run: | | |
make docker-push |