Skip to content

Commit

Permalink
Refresh release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
connorhsm committed Oct 3, 2024
1 parent 72a596d commit f88efc0
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Publish Junior container
name: Release Junior

on:
release:
types:
- created
workflow_dispatch:

jobs:
publish-container:
Expand Down Expand Up @@ -38,30 +37,31 @@ 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

- name: Deploy commands
run: node deploy-commands.js
env:
PROD_TOKEN: ${{ secrets.PROD_BOT_TOKEN }}
PROD_TOKEN: ${{ secrets.DISCORD_BOT_TOKEN }}

0 comments on commit f88efc0

Please sign in to comment.