Skip to content

Commit

Permalink
update publish image action
Browse files Browse the repository at this point in the history
  • Loading branch information
gladwindos committed Mar 15, 2024
1 parent acc6b06 commit 052668d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .changeset/serious-jokes-beg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@gateweaver/cli": patch
"@gateweaver/policies": patch
"@gateweaver/server": patch
"@gateweaver/utils": patch
---

Publish packages
6 changes: 3 additions & 3 deletions .github/actions/publish-image/action.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Publish Server Docker Image
description: Create and publish Server Docker image
inputs:
GITHUB_TOKEN:
required: true
REGISTRY:
description: The registry to push the image to
required: false
default: ghcr.io
IMAGE_NAME:
description: The name of the image to push
required: false
default: gateweaver/server

Expand All @@ -21,7 +21,7 @@ runs:
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
password: ${{ inputs.GITHUB_TOKEN }}

- name: Get server package version
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@ jobs:
- name: Publish Server Docker Image
if: steps.changesets.outputs.published == 'true'
uses: ./.github/actions/publish-image
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 052668d

Please sign in to comment.