Skip to content

automatically build and push docker image to docker hub #1

automatically build and push docker image to docker hub

automatically build and push docker image to docker hub #1

Workflow file for this run

name: Build Docker Image
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build Docker image
run: docker build -t athlon1600/notepad:latest .
- name: Push Docker image
run: docker push athlon1600/notepad:latest