feat: add initial pipeline

This commit is contained in:
Price Hiller 2023-01-26 15:13:30 -06:00
parent 04027db24b
commit d1afb0b8bc

38
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,38 @@
name: Docker Image CI
on:
push:
branches:
- Development
pull_request:
branches:
- Development
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- 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
cache-from: type=registry,ref=${{ vars.DOCKER_REGISTRY_URL }}/squadjs:latest
cache-to: type=inline
tags: "${{ vars.DOCKER_REGISTRY_URL }}/squadjs:latest"