This repository has been archived by the owner on Mar 22, 2024. It is now read-only.
Earthly CI/CD #186
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Earthly CI/CD | |
on: | |
schedule: | |
- cron: "38 20 * * *" | |
push: | |
branches: [main] | |
permissions: | |
contents: read | |
packages: write | |
jobs: | |
build: | |
strategy: | |
matrix: | |
type: | |
- spigot | |
- paper | |
- vanilla | |
version: | |
- latest | |
- 1.20.4 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup Earthly | |
uses: earthly/actions-setup@v1 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
version: "latest" | |
- name: Build, test, and push image | |
run: earthly --allow-privileged --use-inline-cache --save-inline-cache --push +ci.${{ matrix.type }} --version=${{ matrix.version }} |