2020-09-19 16:23:39 +02:00
|
|
|
name: Build docker image
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2020-09-19 16:25:33 +02:00
|
|
|
- main
|
2020-09-19 16:23:39 +02:00
|
|
|
tags:
|
|
|
|
- 'v*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2020-12-30 20:58:36 +01:00
|
|
|
runs-on: ubuntu-20.04
|
2020-09-19 16:23:39 +02:00
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
2020-11-10 19:25:20 +01: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 16:23:39 +02:00
|
|
|
with:
|
2020-11-10 19:25:20 +01:00
|
|
|
version: latest
|
2020-09-19 16:23:39 +02:00
|
|
|
- name: Login to docker hub
|
2020-11-10 19:25:20 +01:00
|
|
|
uses: docker/login-action@v1
|
|
|
|
with:
|
2020-11-13 22:44:26 +01:00
|
|
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
2020-09-19 16:23:39 +02:00
|
|
|
- name: Build the image
|
|
|
|
run: bash ./scripts/docker/build
|