2020-07-31 13:17:14 -05:00
|
|
|
name: Build docker image
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- develop
|
|
|
|
tags:
|
2020-07-31 13:24:44 -05:00
|
|
|
- 'v*'
|
2020-07-31 13:17:14 -05:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
2020-11-10 12:03:14 -06:00
|
|
|
- name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v1
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v1
|
2020-11-10 12:06:50 -06:00
|
|
|
with:
|
2020-11-10 12:03:14 -06:00
|
|
|
version: latest
|
2020-07-31 13:37:14 -05:00
|
|
|
- name: Login to docker hub
|
2020-11-10 12:03:14 -06:00
|
|
|
uses: docker/login-action@v1
|
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
2020-07-31 13:17:14 -05:00
|
|
|
- name: Build the image
|
|
|
|
run: bash ./docker/build
|