2023-01-26 15:13:30 -06:00
|
|
|
name: Docker Image CI
|
|
|
|
|
|
|
|
on:
|
2023-01-28 17:30:20 -06:00
|
|
|
schedule:
|
2023-02-07 23:14:27 -06:00
|
|
|
- cron: '30 17 * * *'
|
2023-01-26 15:13:30 -06:00
|
|
|
push:
|
|
|
|
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
|
2023-02-14 00:23:12 -06:00
|
|
|
cache-from: type=registry,ref=${{ vars.DOCKER_REGISTRY_URL }}/squadjs:latest
|
2023-01-26 15:13:30 -06:00
|
|
|
cache-to: type=inline
|
|
|
|
tags: "${{ vars.DOCKER_REGISTRY_URL }}/squadjs:latest"
|