Skip to content

feat: add Dockerfile and configure github actions #1

feat: add Dockerfile and configure github actions

feat: add Dockerfile and configure github actions #1

Workflow file for this run

name: Build and share Docker Image to Docker Hub
on:
push:
branches:
- master
jobs:
build-and-share:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO_NAME }}:latest