Skip to content

Docker Build and Push #3

Docker Build and Push

Docker Build and Push #3

Workflow file for this run

name: Docker Build and Push
on:
workflow_dispatch:
inputs:
version:
description: The version to build
push:
tags:
- '*.*'
- '*.*.*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and Push Docker Image
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/picseal:latest