Create main.yml

This commit is contained in:
Marilynn Paranada 2024-08-04 18:04:54 +08:00 committed by GitHub
parent 764c0cb865
commit ab847ee2fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

25
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Docker Build and Push
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- 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:
push: true
tags: mos98/ok_moss_best:latest