Skip to content

Docker Image CI

Docker Image CI #15

Workflow file for this run

name: Build and deploy docker
on:
push:
tags:
- v2.*
jobs:
publish-docker-image:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
file: docker/Dockerfile
push: true
tags: ghcr.io/sefirosweb/minecraft-legion:latest