name: Build Docker image - manual on: workflow_dispatch: inputs: version_tag: description: 'Format: v[version number]' required: true jobs: build: runs-on: ubuntu-latest steps: # Checks-out the repository under $GITHUB_WORKSPACE, so the job can access it - name: Checkout code uses: actions/checkout@v2 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 - name: Login to DockerHub uses: docker/login-action@v1 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Build and push Docker images uses: docker/build-push-action@v2 with: pull: true push: true tags: rabobankcdc/dettect:latest, rabobankcdc/dettect:${{ github.event.inputs.version_tag }}