Skip to content

CI

CI #5

name: CI
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker build branch
run: make docker
if: ${{ github.ref_type == 'branch' && github.ref_name != 'main' }}
- name: Docker build main
run: make docker_main
if: ${{ github.ref_type == 'branch' && github.ref_name == 'main' }}
- name: Docker build tag
run: make docker_tag TAG="${{github.ref_name}}"
if: ${{ github.ref_type == 'tag' }}