Merge pull request #78 from internetstandards/50 #292
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: QA and image building | |
on: [ push, pull_request ] | |
jobs: | |
build: | |
environment: Default | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build image | |
run: | | |
make image | |
- name: Login to Docker Hub | |
if: github.ref == 'refs/heads/main' && github.event_name == 'push' | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Push image to docker hub | |
if: github.ref == 'refs/heads/main' && github.event_name == 'push' | |
run: | | |
make push_image |