Skip to content

Docker Image CI

Docker Image CI #8

Workflow file for this run

name: Docker Image CI
on:
workflow_dispatch:
inputs:
version:
description: 'Solhint version'
required: true
image_name:
description: 'Name of image to be used on docker hub'
required: true
default: 'protodb/protofire-solhint'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login to Docker Hub
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_ACCESS_TOKEN }}
- name: Build Docker image
run: docker build . --file docker/Dockerfile --tag ${{ inputs.image_name }}:latest --build-arg VERSION=${{ inputs.version }}
- name: Push Docker image to Docker Hub
run: docker push ${{ inputs.image_name }}:latest