Skip to content

Commit

Permalink
test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ink-victor committed Feb 4, 2025
1 parent 049462e commit ef07319
Showing 1 changed file with 23 additions and 11 deletions.
34 changes: 23 additions & 11 deletions .github/workflows/ship.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@ concurrency:
cancel-in-progress: true
on:
push:
branches: ["main"]
paths:
- .github/workflows/ship.yml
- "**"
pull_request:
branches: ["main"]
branches: ["main2"]
paths:
- .github/workflows/ship.yml
- "**"
Expand Down Expand Up @@ -80,9 +75,26 @@ jobs:
MULTIPLIER_JWT_SECRET=${{ secrets.MULTIPLIER_JWT_SECRET }}
EOF
- uses: ./.github/actions/image-build-push
# - uses: ./.github/actions/image-build-push
# with:
# repository-name: ink-web-app
# dockerfile-path: ./Dockerfile
# docker-context: ./
# github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Generate GitHub App Token
id: generate-token
uses: tibdex/github-app-token@v2
with:
repository-name: ink-web-app
dockerfile-path: ./Dockerfile
docker-context: ./
github-token: ${{ secrets.GITHUB_TOKEN }}
app_id: ${{ secrets.INK_APP_SUBMISSION_BOT_GITHUB_APP_ID }}
private_key: ${{ secrets.INK_APP_SUBMISSION_BOT_GITHUB_PRIVATE_KEY }}
repository: ${{ secrets.TARGET_REPOSITORY }}

- name: Trigger infra update
if: github.ref == 'refs/heads/main2'
run: |
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: Bearer ${{ steps.generate-token.outputs.token }}" \
${{ secrets.TARGET_REPOSITORY_DISPATCH_URL }} \
-d '{"event_type": "update-eks-image", "client_payload": {"message": "Test commit from GitHub Actions"}}'

0 comments on commit ef07319

Please sign in to comment.