Skip to content

Update and rename docker-image.yml to dockerhub-pushing.yml #1

Update and rename docker-image.yml to dockerhub-pushing.yml

Update and rename docker-image.yml to dockerhub-pushing.yml #1

name: Build Docker Image
on:
schedule:
- cron: '0 0 */5 * *'
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
context: ./
tags: fall2wish/mirai-overflow-docker:latest
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}