Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,15 @@ jobs:
go-version: 1.21.5

# set up the test environment
- uses: cybozu/octoken-action@v1
id: octoken
- uses: actions/create-github-app-token@v1
id: e2e-test-token
with:
github_app_id: ${{ secrets.E2E_SETUP_GITHUB_APP_ID }}
github_app_private_key: ${{ secrets.E2E_SETUP_GITHUB_APP_PRIVATE_KEY }}
app-id: ${{ secrets.E2E_SETUP_GITHUB_APP_ID }}
private-key: ${{ secrets.E2E_SETUP_GITHUB_APP_PRIVATE_KEY }}
repositories: argocd-commenter-e2e-test
- uses: actions/checkout@v4
with:
token: ${{ steps.octoken.outputs.token }}
token: ${{ steps.e2e-test-token.outputs.token }}
repository: int128/argocd-commenter-e2e-test
path: e2e_test/argocd-commenter-e2e-test-repository
- run: make -C e2e_test setup-fixture-branch
Expand Down Expand Up @@ -92,21 +93,21 @@ jobs:
env:
PULL_REQUEST_BODY: "e2e-test ${{ github.repository }}#${{ github.event.pull_request.number }}"
DEPLOYMENT_URL: ${{ steps.deployment-app1.outputs.url }}
GITHUB_TOKEN: ${{ steps.octoken.outputs.token }}
GITHUB_TOKEN: ${{ steps.e2e-test-token.outputs.token }}

- run: make -C e2e_test restart-app1

- run: make -C e2e_test deploy-app2
env:
PULL_REQUEST_BODY: "e2e-test ${{ github.repository }}#${{ github.event.pull_request.number }}"
DEPLOYMENT_URL: ${{ steps.deployment-app2.outputs.url }}
GITHUB_TOKEN: ${{ steps.octoken.outputs.token }}
GITHUB_TOKEN: ${{ steps.e2e-test-token.outputs.token }}

- run: make -C e2e_test deploy-app3
env:
PULL_REQUEST_BODY: "e2e-test ${{ github.repository }}#${{ github.event.pull_request.number }}"
DEPLOYMENT_URL: ${{ steps.deployment-app3.outputs.url }}
GITHUB_TOKEN: ${{ steps.octoken.outputs.token }}
GITHUB_TOKEN: ${{ steps.e2e-test-token.outputs.token }}

# show logs
- run: make -C e2e_test logs-argocd
Expand Down