build-service #63
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-service | |
on: | |
workflow_dispatch: | |
inputs: | |
image_build_name: | |
description: 'IMAGE_BUILD_NAME' | |
default: '10-vboxtools' | |
required: true | |
version: | |
description: 'VERSION' | |
default: '0.0.1' | |
required: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: '0' | |
- name: Build with dapper | |
run: | | |
export DOCKER_VERSION=1.10.3 | |
export IMAGE_BUILD_NAME=${{ github.event.inputs.image_build_name }} | |
export VERSION=${{ github.event.inputs.version }} | |
make release | |
- name: Log into registry | |
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin | |
- name: Push images to Docker Hub | |
run: ${PWD}/dist/publish.sh |