build: Configure secrets

This commit is contained in:
Martin Polden 2021-01-24 15:05:08 +01:00
parent 4f071cd6a2
commit 711ea5377d

View File

@ -9,6 +9,9 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: install go - name: install go
@ -19,7 +22,7 @@ jobs:
run: make run: make
- name: enable experimental docker features - name: enable experimental docker features
run: | run: |
echo '{"experimental":true}' | sudo tee /etc/docker/daemon.json ~/.docker/config.json echo '{"experimental":true}' | sudo tee /etc/docker/daemon.json
sudo service docker restart sudo service docker restart
- name: build docker image - name: build docker image
run: make docker-build run: make docker-build