Skip to content

Feat/improve cicd part5 #4

Feat/improve cicd part5

Feat/improve cicd part5 #4

Workflow file for this run

name: deploy docker workflow
on:
workflow_dispatch:
inputs:
bump_type:
description: "Bump type (#major, #minor, #patch)"
required: true
pull_request:
jobs:
deploy-docker:
runs-on: ubuntu-latest
steps:
- name: "1. Clone repository"
uses: actions/checkout@v4
- name: "2. Determine current version"
uses: hrzn/github-tag-action@master
id: bump_dry
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DRY_RUN: true
# BUMP_TYPE: ${{ github.event.inputs.bump_type}}
BUMP_TYPE: "#minor"
- name: "Set up QEMU"
uses: docker/setup-qemu-action@v3
- name: "Set up Docker Buildx"
uses: docker/setup-buildx-action@v3
- name: "Login to Docker Hub"
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: "Build and push"
uses: docker/build-push-action@v6
with:
push: false
tags: unit8/darts:${{ steps.bump_dry.outputs.tag }}, unit8/darts:latest