chore: bump deps #472
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
name: Deploy Docker Images | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check-changes: | |
runs-on: ubuntu-latest | |
outputs: | |
api-changed: ${{ steps.filter.outputs.api }} | |
cron-changed: ${{ steps.filter.outputs.cron }} | |
steps: | |
- name: Checkout πͺ | |
uses: actions/checkout@v4 | |
- name: Check for changes π | |
id: filter | |
uses: dorny/paths-filter@v2 | |
with: | |
filters: | | |
api: | |
- 'apps/api/**' | |
- 'packages/**' | |
cron: | |
- 'apps/cron/**' | |
- 'packages/**' | |
api: | |
needs: check-changes | |
if: needs.check-changes.outputs.api-changed == 'true' | |
name: build api changes | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout πͺ | |
uses: actions/checkout@v4 | |
- name: Build and push docker image π¨ | |
uses: ./.github/actions/docker | |
with: | |
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} | |
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }} | |
image_name: tape-api | |
tag_name: 'latest' | |
docker_file: ./apps/api/Dockerfile | |
- name: Trigger API Deployment π’ | |
uses: indiesdev/curl@v1 | |
id: deploy | |
with: | |
url: 'https://redeploy.tapes.workers.dev' | |
params: '{ "secret": "${{ secrets.SECRET_KEY }}", "service": "${{ secrets.API_RAILWAY_SERVICE_ID }}" }' | |
method: 'GET' | |
timeout: 30000 | |
cron: | |
needs: check-changes | |
if: needs.check-changes.outputs.cron-changed == 'true' | |
name: build cron changes | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout πͺ | |
uses: actions/checkout@v4 | |
- name: Build and push docker image π¨ | |
uses: ./.github/actions/docker | |
with: | |
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} | |
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }} | |
image_name: tape-cron | |
tag_name: 'latest' | |
docker_file: ./apps/cron/Dockerfile | |
- name: Trigger Cron Deployment π’ | |
uses: indiesdev/curl@v1 | |
id: deploy | |
with: | |
url: 'https://redeploy.tapes.workers.dev' | |
params: '{ "secret": "${{ secrets.SECRET_KEY }}", "service": "${{ secrets.CRON_RAILWAY_SERVICE_ID }}" }' | |
method: 'GET' | |
timeout: 30000 |