-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add image manifest fetching and comparison
Update image manifest retrieval in builder workflow Update image manifest retrieval in builder workflow Add debugging step to check token presence Update token presence check in builder.yml Add environment variable for production deployment Add test to server export Add debug statement to compare manifests Update manifest comparison for debug purposes Add new images to check_updates job Fix bug in login functionality rm Fix image name replacement in builder workflow check tag instead, we'll just push newn versions Update Dota image version to v2.16 Remove unnecessary steps and actions from builder workflow test revert deployer try a pat try a test try it all outputting test try try test try try test Add deploy check and package mapping to UUID t try t f Update workflow to release to Coolify test c Update builder and deploy workflows Remove unnecessary options from docker/bake-action Update builder.yml to disable OCI mediatypes for Docker output try 2 Refactor build and push step to use docker compose Update build and push action in builder.yml Update builder.yml to set output-type to docker rebuild Update Docker build configuration Add no-cache option to docker bake action test Update Docker Buildx and disable sbom and provenance try test Add docker compose pull command Update Docker cache image names Add debug output for event json Remove test commit Update logger message in index.ts Remove sbom flag from docker/bake-action Add no-cache option to builder workflow Remove no-cache option and update console log message Update builder.yml to set platform to linux/arm64 Refactor deploy workflow to remove debug output and check for recent buildkit/createdat timestamps Refactor console log message in steam index.ts Add deployment workflow for prod and dev environments Refactor release workflow to notify Coolify for both Prod and Dev environments
- Loading branch information
Showing
4 changed files
with
45 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,38 @@ | ||
name: Map and Notify On Registry Package Update | ||
name: Release to Coolify | ||
|
||
on: | ||
registry_package: | ||
types: [updated] | ||
types: [published] | ||
|
||
jobs: | ||
notify: | ||
release: | ||
if: ${{ github.event.registry_package.package_version.container_metadata.labels.description != '' }} | ||
runs-on: ubuntu-latest | ||
environment: prod | ||
steps: | ||
- name: Check for image tag information and valid package name | ||
if: | | ||
github.event.registry_package.package_version.container_metadata.tag.name != '' && | ||
( | ||
github.event.registry_package.name == 'dota' || | ||
github.event.registry_package.name == 'twitch-events' || | ||
github.event.registry_package.name == 'twitch-chat' || | ||
github.event.registry_package.name == 'steam' | ||
) | ||
- name: "Release to Prod and Dev" | ||
run: | | ||
# Map package name to UUID | ||
case "${{ github.event.registry_package.name }}" in | ||
"dota") UUID="esgckgc" ;; | ||
"twitch-events") UUID="aopskdk" ;; | ||
"twitch-chat") UUID="gahgag" ;; | ||
"steam") UUID="asldja" ;; | ||
esac | ||
notify_coolify() { | ||
local env_name=$1 | ||
local uuid_map=$2 | ||
# Map package name to UUID | ||
case "${{ github.event.registry_package.name }}" in | ||
"dota") UUID=${uuid_map["dota"]} ;; | ||
"twitch-events") UUID=${uuid_map["twitch-events"]} ;; | ||
"twitch-chat") UUID=${uuid_map["twitch-chat"]} ;; | ||
"steam") UUID=${uuid_map["steam"]} ;; | ||
esac | ||
# Notify Coolify | ||
echo "Notifying Coolify for $env_name environment: $UUID" | ||
curl -s -X GET -H "Authorization: Bearer ${{ secrets.COOLIFY_API_KEY }}" "https://${{ secrets.COOLIFY_HOST }}/api/v1/deploy?uuid=${UUID}&force=false" | ||
} | ||
# UUID mappings for prod and dev | ||
declare -A prod_uuids=( ["dota"]="i8gccg8" ["twitch-events"]="zwg4g4c" ["twitch-chat"]="zwgkg48" ["steam"]="wsgwk8s" ) | ||
declare -A dev_uuids=( ["dota"]="esgckgc" ["twitch-events"]="kkk04os" ["twitch-chat"]="qgosw80" ["steam"]="q88g0c8" ) | ||
# 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" | ||
# Notify for prod and dev | ||
notify_coolify "Prod" prod_uuids | ||
notify_coolify "Dev" dev_uuids |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters