Skip to content

Merge pull request #1 from jsknnr/dev #1

Merge pull request #1 from jsknnr/dev

Merge pull request #1 from jsknnr/dev #1

name: Build and push Docker image
on:
push:
branches: [ main ]
env:
IMAGE_NAME: enshrouded-dedicated-server
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 and push Docker image
uses: docker/build-push-action@v5
with:
context: ./docker
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}:latest