2020-10-15 03:26:26 +00:00
|
|
|
# File generated by bin/generate-actions-yaml.sh
|
|
|
|
name: ci
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-images:
|
2021-02-02 18:46:14 +00:00
|
|
|
runs-on: ubuntu-20.04
|
2020-10-15 03:26:26 +00:00
|
|
|
steps:
|
2021-02-17 19:08:48 +00:00
|
|
|
- name: Checkout
|
2020-10-15 03:26:26 +00:00
|
|
|
uses: actions/checkout@v2
|
2021-02-17 19:08:48 +00:00
|
|
|
- name: Login to DockerHub
|
|
|
|
uses: docker/login-action@v1
|
2020-10-15 03:26:26 +00:00
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
2021-02-17 19:08:48 +00:00
|
|
|
- name: Build images
|
2020-10-21 15:19:33 +00:00
|
|
|
run: ./bin/build-images.sh
|
2021-02-17 19:08:48 +00:00
|
|
|
- name: Push images
|
2020-10-21 15:19:33 +00:00
|
|
|
if: ${{ github.event_name != 'pull_request' }}
|
|
|
|
run: ./bin/push-images.sh
|