Skip to content

Commit

Permalink
try it all outputting
Browse files Browse the repository at this point in the history
  • Loading branch information
Geczy committed Dec 27, 2023
1 parent d749312 commit 3a0bdbd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ jobs:
environment: prod
permissions:
packages: write
env:
IMAGES: "twitch_chat twitch_events steam dota"
steps:
- uses: actions/checkout@v4

Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@ name: Map and Notify On Registry Package Update
on: registry_package

jobs:
notify:
release:
if: ${{ github.event.registry_package.package_version.container_metadata.tag.name != '' }}
environment: prod
runs-on: ubuntu-latest
steps:
- name: Debug the information we just got
run: |
echo "Package name: ${{ github.event.registry_package.name }}"
echo "Package version: ${{ github.event.registry_package.package_version.version }}"
echo "Package tag: ${{ github.event.registry_package.package_version.container_metadata.tag.name }}"
# JSON serialize everything and echo it
echo "${{ toJson(github.event) }}"
- name: Check for image tag information and valid package name
if: |
github.event.registry_package.package_version.container_metadata.tag.name != '' &&
Expand All @@ -31,4 +35,4 @@ jobs:
esac
# Use curl to call a GET webhook with the mapped UUID and API key from secrets
curl -X GET -H "Authorization: Bearer ${{ secrets.COOLIFY_API_KEY }}" "https://${{ secrets.COOLIFY_HOST }}/api/v1/deploy?uuid=${UUID}&force=false"
curl -s -X GET -H "Authorization: Bearer ${{ secrets.COOLIFY_API_KEY }}" "https://${{ secrets.COOLIFY_HOST }}/api/v1/deploy?uuid=${UUID}&force=false"

0 comments on commit 3a0bdbd

Please sign in to comment.