Skip to content

2.1.1

2.1.1 #13

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: Install and build files
uses: actions/setup-node@v3
with:
node-version: "18.x"
- name: Build the bot files
run: npm run build
- 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