Skip to content

Commit

Permalink
fixme
Browse files Browse the repository at this point in the history
  • Loading branch information
derrix060 committed Jun 26, 2024
1 parent 67d815c commit aa5c0b3
Showing 1 changed file with 28 additions and 11 deletions.
39 changes: 28 additions & 11 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ jobs:

- name: Define image tag
run: |
echo "DOCKER_IMAGE_TAG=$(git describe --tags)" >> $GITHUB_ENV
# echo "DOCKER_IMAGE_TAG=$(git describe --tags)" >> $GITHUB_ENV
echo "DOCKER_IMAGE_TAG=v0.11.9-11-g67d815c7)" >> $GITHUB_ENV
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -53,13 +54,13 @@ jobs:
run: |
docker login ${{ env.DOCKER_REGISTRY }} -u ${{ vars.ARTIFACTORY_ANGKOR_USER }} -p ${{ secrets.ARTIFACTORY_ANGKOR_CONTRIBUTOR }}
- name: Build and Push
uses: docker/build-push-action@v5
with:
context: .
platforms: "linux/amd64"
push: true
tags: ${{ env.DOCKER_REGISTRY }}/${{ env.REPO_DEV }}/juno:${{ env.DOCKER_IMAGE_TAG }}
# - name: Build and Push
# uses: docker/build-push-action@v5
# with:
# context: .
# platforms: "linux/amd64"
# push: true
# tags: ${{ env.DOCKER_REGISTRY }}/${{ env.REPO_DEV }}/juno:${{ env.DOCKER_IMAGE_TAG }}

- name: Authenticate App
id: gh-app
Expand All @@ -68,10 +69,26 @@ jobs:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}

- name: Test credentials
run: |
curl -L \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token ${{ steps.gh-app.outputs.token }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/NethermindEth/argo/actions/workflows
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token ${{ steps.gh-app.outputs.token }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/NethermindEth/argo/dispatches \
-d '{"event_type": "${{ env.EVENT_NAME_DEV }}", "client_payload":{"name": "${{ env.EVENT_NAME_DEV }}", "sepolia_config": "${{ env.SEPOLIA_DEV }}", "tag": "${{ env.DOCKER_IMAGE_TAG }}"}}'
- name: Trigger juno dev deployment workflow
uses: benc-uk/workflow-dispatch@v1
with:
workflow: dispatch_render_juno.yml
workflow: 68030745
repo: NethermindEth/argo
ref: "main"
token: "${{ steps.gh-app.outputs.token }}"
Expand Down Expand Up @@ -139,7 +156,7 @@ jobs:
- name: Trigger juno staging deployment workflow
uses: benc-uk/workflow-dispatch@v1
with:
workflow: dispatch_render_juno.yml
workflow: 68030745
repo: NethermindEth/argo
ref: "main"
token: "${{ steps.gh-app.outputs.token }}"
Expand Down Expand Up @@ -194,7 +211,7 @@ jobs:
- name: Trigger juno prod deployment workflow
uses: benc-uk/workflow-dispatch@v1
with:
workflow: dispatch_render_juno.yml
workflow: 68030745
repo: NethermindEth/argo
ref: "main"
token: "${{ steps.gh-app.outputs.token }}"
Expand Down

0 comments on commit aa5c0b3

Please sign in to comment.