mirror of
https://github.com/AsgardEternal/SquadJSDocker.git
synced 2024-12-28 23:39:18 -06:00
39 lines
813 B
YAML
39 lines
813 B
YAML
name: Docker Image CI
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- Development
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: self-hosted
|
|
|
|
steps:
|
|
- name: checkout repo and submodules
|
|
uses: actions/checkout@v3
|
|
with:
|
|
submodules: true
|
|
|
|
- name: Login To Registry
|
|
uses: docker/login-action@v2
|
|
with:
|
|
registry: "${{ vars.DOCKER_REGISTRY_URL }}"
|
|
username: "${{ secrets.DOCKER_REGISTRY_USER }}"
|
|
password: "${{ secrets.DOCKER_REGISTRY_PASSWORD }}"
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
- name: Build SquadJS Image
|
|
uses: docker/build-push-action@v3
|
|
with:
|
|
context: .
|
|
file: ./Dockerfile
|
|
push: true
|
|
no-cache: true
|
|
tags: "${{ vars.DOCKER_REGISTRY_URL }}/squadjs:latest"
|