Skip to content

Commit

Permalink
fix the app action (#10)
Browse files Browse the repository at this point in the history
* feat: Add DigitalOcean-AppPlatform-Cron configuration

* app.yaml fix

* rename

* Fix crontab URL in app.yaml

* fix readme

* fix the template

* Update deploy-app-platform.yaml with additional parameters

* Add nginx service to app.yaml and deploy.template.yaml
  • Loading branch information
jkpe authored Dec 19, 2024
1 parent 4952140 commit 85377cc
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 10 deletions.
21 changes: 21 additions & 0 deletions .do/app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: cron
services:
- http_port: 80
image:
registry: library
registry_type: DOCKER_HUB
repository: nginx
tag: latest
instance_count: 1
instance_size_slug: apps-s-1vcpu-0.5gb
name: nginx
workers:
- dockerfile_path: Dockerfile
github:
branch: main
deploy_on_push: true
repo: DO-Solutions/app-platform-cron
instance_count: 1
instance_size_slug: apps-s-1vcpu-0.5gb
name: docker-cron
source_dir: /
27 changes: 20 additions & 7 deletions .do/deploy.template.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
spec:
name: docker-cron
name: cron
services:
- dockerfile_path: Dockerfile
github:
branch: main
deploy_on_push: true
repo: DO-Solutions/docker-cron
name: docker-cron
- http_port: 80
image:
registry: library
registry_type: DOCKER_HUB
repository: nginx
tag: latest
instance_count: 1
instance_size_slug: apps-s-1vcpu-0.5gb
name: nginx
workers:
- dockerfile_path: Dockerfile
github:
branch: main
deploy_on_push: true
repo: DO-Solutions/app-platform-cron
instance_count: 1
instance_size_slug: apps-s-1vcpu-0.5gb
name: docker-cron
source_dir: /
5 changes: 4 additions & 1 deletion .github/workflows/deploy-app-platform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,7 @@ jobs:
# env:
# SOME_SECRET_FROM_REPOSITORY: ${{ secrets.SOME_SECRET_FROM_REPOSITORY }}
with:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
project_id: ${{ secrets.DIGITALOCEAN_PROJECT_ID }}
print_build_logs: true
print_deploy_logs: true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ workers:
github:
branch: main
deploy_on_push: true
repo: <your-github-username>/DigitalOcean-AppPlatform-Cron
repo: <your-github-username>/app-platform-cron
instance_count: 1
instance_size_slug: apps-s-1vcpu-0.5gb
name: docker-cron
Expand Down
2 changes: 1 addition & 1 deletion crontab
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
* * * * * curl https://raw.githubusercontent.com/DO-Solutions/DigitalOcean-AppPlatform-Cron/refs/heads/app-action/poem.json >/proc/1/fd/1 2>/proc/1/fd/2
* * * * * curl https://raw.githubusercontent.com/DO-Solutions/app-platform-cron/refs/heads/app-action/poem.json >/proc/1/fd/1 2>/proc/1/fd/2

# An empty line is required at the end of this file for a valid cron file.

0 comments on commit 85377cc

Please sign in to comment.