Skip to content

Modified workflow to push docker image #4

Modified workflow to push docker image

Modified workflow to push docker image #4

Workflow file for this run

name: Docker Image Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
inputs:
version:
required: true
description: "What is the image tag?"
type: string
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file Dockerfile -t irezden/numberapi:${{ inputs.version }}
- uses: actions/checkout@v4
- name: Push Docker image
run: docker push irezden/numberapi:${{ inputs.version }}