SquadDocker/.github/workflows/main.yml

52 lines
1.3 KiB
YAML
Raw Normal View History

2023-01-26 14:23:26 -06:00
name: Docker Image CI
on:
2023-01-26 17:15:31 -06:00
workflow_dispatch:
schedule:
- cron: '30 14 * * *'
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"