diff --git a/.github/workflows/publish-container.yml b/.github/workflows/release.yml similarity index 79% rename from .github/workflows/publish-container.yml rename to .github/workflows/release.yml index 8101f4f..5ad5fd4 100644 --- a/.github/workflows/publish-container.yml +++ b/.github/workflows/release.yml @@ -1,10 +1,9 @@ -name: Publish Junior container +name: Release Junior on: release: types: - created - workflow_dispatch: jobs: publish-container: @@ -38,25 +37,26 @@ jobs: run: git describe --tags --abbrev=0 > version.txt - name: Build and push - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v6 with: - context: . + context: . # Intentionally using Path context to include version.txt push: true tags: ${{ steps.meta.outputs.tags }}, ghcr.io/twohoursonelife/junior:latest labels: ${{ steps.meta.outputs.labels }} - #cache-from: type=gha - #cache-to: type=gha,mode=max + cache-from: type=gha + cache-to: type=gha,mode=max deploy-commands: runs-on: ubuntu-latest + environment: prod-commands steps: - name: Checkout uses: actions/checkout@v4 - name: Setup Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: '18' + node-version: "18" - name: Install dependencies run: npm ci @@ -64,4 +64,4 @@ jobs: - name: Deploy commands run: node deploy-commands.js env: - PROD_TOKEN: ${{ secrets.PROD_BOT_TOKEN }} + PROD_TOKEN: ${{ secrets.DISCORD_BOT_TOKEN }}