I forgot to push FoxyCommandManager #325
This file contains hidden or 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: Continuous Integration | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: Grant execute permission for gradlew | |
run: chmod +x ./gradlew | |
- name: Build Foxy with Gradle | |
env: | |
GIT_COMMIT: ${{ github.sha }} | |
GITHUB_RUN_NUMBER: ${{ github.run_number }} | |
run: ./gradlew :foxy:shadowJar --no-daemon -Dorg.gradle.jvmargs="-Xmx4096m -Xms4096m" | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push Docker image | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
file: docker/Dockerfile | |
push: true | |
tags: ghcr.io/foxythebot/foxy-bot:latest | |
build-args: | | |
BUILD_NUMBER=${{ github.run_number }} | |
COMMIT_HASH=${{ github.sha }} |