2020-09-19 17:23:39 +03:00
|
|
|
name: Build docker image
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2020-09-19 17:25:33 +03:00
|
|
|
- main
|
2020-09-19 17:23:39 +03:00
|
|
|
tags:
|
|
|
|
- 'v*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2020-12-30 22:58:36 +03:00
|
|
|
runs-on: ubuntu-20.04
|
2020-09-19 17:23:39 +03:00
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
2020-11-10 21:25:20 +03:00
|
|
|
- name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v1
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v1
|
2020-09-19 17:23:39 +03:00
|
|
|
with:
|
2020-11-10 21:25:20 +03:00
|
|
|
version: latest
|
2020-09-19 17:23:39 +03:00
|
|
|
- name: Login to docker hub
|
2020-11-10 21:25:20 +03:00
|
|
|
uses: docker/login-action@v1
|
|
|
|
with:
|
2020-11-14 00:44:26 +03:00
|
|
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
2020-09-19 17:23:39 +03:00
|
|
|
- name: Build the image
|
|
|
|
run: bash ./scripts/docker/build
|