Skip to content

👷 On-demand CI custom build using #11

👷 On-demand CI custom build using

👷 On-demand CI custom build using #11

Workflow file for this run

name: Docker
on:
workflow_dispatch:
push:
# TODO:
# branches:
# - develop
tags:
- "*"
pull_request:
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- run: make docker/build
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
- name: docker login
if: github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags/')
run: make docker/login
- name: docker push
if: github.ref == 'refs/heads/develop'
run: make docker/push
- name: docker push (tag)
if: startsWith(github.ref, 'refs/tags/')
env:
DOCKER_TAG: ${GITHUB_REF#refs/tags/}
run: |
make docker/tag DOCKER_TAG=$DOCKER_TAG
# TODO: debugging
# make docker/push