Skip to content

Update README.md #113

Update README.md

Update README.md #113

name: Docker - Publish
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
- name: Login to DockerHub
uses: docker/#-action@v1
with:
username: mt1976
password: Merc400350
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: mt1976/mc:latest