From f88efc069912bd99a2c36ee85f5522875ff0dcd8 Mon Sep 17 00:00:00 2001 From: Connor Smith Date: Fri, 4 Oct 2024 02:11:06 +1000 Subject: [PATCH] Refresh release workflow --- .../{publish-container.yml => release.yml} | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) rename .github/workflows/{publish-container.yml => release.yml} (79%) 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 }}