mirror of
https://github.com/Walter-Sparrow/lunar-tear.git
synced 2026-07-02 13:53:41 +03:00
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: Build and Push Docker images to Docker Hub
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
|
|
jobs:
|
|
build-and-push:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Log in to Docker Hub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- name: Build and push game server image
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: ./server
|
|
file: ./server/Dockerfile
|
|
push: true
|
|
tags: kretts/lunar-tear:latest
|
|
|
|
- name: Build and push CDN image
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: ./server
|
|
file: ./server/Dockerfile.cdn
|
|
push: true
|
|
tags: kretts/octo-cdn:latest
|
|
|
|
- name: Build and push auth server image
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: ./server
|
|
file: ./server/Dockerfile.auth
|
|
push: true
|
|
tags: kretts/auth-server:latest
|