2020-07-31 21:17:14 +03:00
|
|
|
name: Build docker image
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- develop
|
|
|
|
tags:
|
2020-07-31 21:24:44 +03:00
|
|
|
- 'v*'
|
2020-07-31 21:17:14 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2022-08-01 18:13:34 +03:00
|
|
|
runs-on: ubuntu-22.04
|
2020-07-31 21:17:14 +03:00
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
2020-11-10 21:03:14 +03: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 21:06:50 +03:00
|
|
|
with:
|
2020-11-10 21:03:14 +03:00
|
|
|
version: latest
|
2020-07-31 21:37:14 +03:00
|
|
|
- name: Login to docker hub
|
2020-11-10 21:03:14 +03:00
|
|
|
uses: docker/login-action@v1
|
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
2020-07-31 21:17:14 +03:00
|
|
|
- name: Build the image
|
|
|
|
run: bash ./docker/build
|