2023-01-26 14:23:26 -06:00
|
|
|
name: Docker Image CI
|
|
|
|
|
|
|
|
on:
|
2023-01-26 17:15:31 -06:00
|
|
|
workflow_dispatch:
|
2023-01-28 17:29:07 -06:00
|
|
|
schedule:
|
2023-02-07 23:14:55 -06:00
|
|
|
- cron: '30 17 * * *'
|
2023-01-26 14:23:26 -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 Vanilla Squad Image
|
|
|
|
uses: docker/build-push-action@v3
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
file: ./Dockerfile
|
|
|
|
push: true
|
2023-01-26 14:59:28 -06:00
|
|
|
cache-from: type=registry,ref=${{ vars.DOCKER_REGISTRY_URL }}/squad:latest
|
2023-01-26 14:56:53 -06:00
|
|
|
cache-to: type=inline
|
|
|
|
tags: "${{ vars.DOCKER_REGISTRY_URL }}/squad:latest"
|
2023-01-26 14:23:26 -06:00
|
|
|
|
|
|
|
|
2023-01-26 14:56:53 -06:00
|
|
|
- name: Build MEE-French Squad Image
|
2023-01-26 14:23:26 -06:00
|
|
|
uses: docker/build-push-action@v3
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
file: ./Dockerfile
|
2023-01-26 14:56:53 -06:00
|
|
|
build-args: |
|
2023-01-26 15:24:05 -06:00
|
|
|
mods=1959152751,2618610732
|
2023-01-26 14:23:26 -06:00
|
|
|
push: true
|
2023-01-26 14:59:28 -06:00
|
|
|
cache-from: type=registry,ref=${{ vars.DOCKER_REGISTRY_URL }}/squad:mee-french-latest
|
2023-01-26 14:23:26 -06:00
|
|
|
cache-to: type=inline
|
2023-01-26 14:56:53 -06:00
|
|
|
tags: "${{ vars.DOCKER_REGISTRY_URL }}/squad:mee-french-latest"
|
2023-02-22 02:26:12 -06:00
|
|
|
|
|
|
|
- name: Build Tac Squad Image
|
|
|
|
uses: docker/build-push-action@v3
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
file: ./Dockerfile
|
|
|
|
build-args: |
|
|
|
|
mods=2924330335,2923657563,2914624834,2891780963,2922041761,2933029302
|
|
|
|
push: true
|
2023-02-22 02:28:53 -06:00
|
|
|
cache-from: type=registry,ref=${{ vars.DOCKER_REGISTRY_URL }}/squad:tac-latest
|
2023-02-22 02:26:12 -06:00
|
|
|
cache-to: type=inline
|
2023-02-22 02:28:53 -06:00
|
|
|
tags: "${{ vars.DOCKER_REGISTRY_URL }}/squad:tac-latest"
|