Skip to content

Build and Push Docker Image #17

Build and Push Docker Image

Build and Push Docker Image #17

name: Build and Push Docker Image
on:
push:
branches:
- main
schedule:
- cron: '0 0 * * SUN'
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and Push Docker image
uses: docker/build-push-action@v5
with:
push: true
tags: mbwilding/enshrouded-server:latest