Skip to content

Commit

Permalink
fixme
Browse files Browse the repository at this point in the history
  • Loading branch information
derrix060 committed Jul 9, 2024
1 parent 263b04e commit 7d0a29c
Showing 1 changed file with 27 additions and 26 deletions.
53 changes: 27 additions & 26 deletions .github/workflows/ci-cd-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,28 +33,29 @@ jobs:
- name: Define image tag
id: set_tag
run: |
export DOCKER_IMAGE_TAG=$(git describe --tags)
# export DOCKER_IMAGE_TAG=$(git describe --tags)
export DOCKER_IMAGE_TAG=v0.11.9-18-gf8d871ef
# This one is to be able to use the image tag in the next steps in this job
echo "DOCKER_IMAGE_TAG=$DOCKER_IMAGE_TAG" >> $GITHUB_ENV
# This one is to be able to use the image tag in the next jobs
echo "DOCKER_IMAGE_TAG=$DOCKER_IMAGE_TAG" >> $GITHUB_OUTPUT
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
# - name: Setup Docker Buildx
# uses: docker/setup-buildx-action@v3

- name: Login to registry
run: |
docker login ${{ env.DOCKER_REGISTRY }} -u ${{ vars.ARTIFACTORY_NUBIA_USER }} -p ${{ secrets.ARTIFACTORY_NUBIA_CONTRIBUTOR}}
# - name: Login to registry
# run: |
# docker login ${{ env.DOCKER_REGISTRY }} -u ${{ vars.ARTIFACTORY_NUBIA_USER }} -p ${{ secrets.ARTIFACTORY_NUBIA_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 }}


validate_dev:
Expand All @@ -73,19 +74,19 @@ jobs:
run: |
bash .github/workflow-scripts/verify_deployment.sh ${{ secrets.DEV_SEPOLIA_URL }} ${{ needs.build_docker_image.outputs.DOCKER_IMAGE_TAG }}
dev-starknet-rs-tests:
needs: [validate_dev]
uses: ./.github/workflows/starknet-rs-tests.yml
secrets:
STARKNET_RPC: ${{ secrets.DEV_SEPOLIA_URL }}/v0_6

dev-starknet-js-tests:
needs: [validate_dev]
uses: ./.github/workflows/starknet-js-tests.yml
secrets:
TEST_RPC_URL: ${{ secrets.DEV_SEPOLIA_URL }}/v0_7
TEST_ACCOUNT_ADDRESS: ${{ secrets.TEST_ACCOUNT_ADDRESS }}
TEST_ACCOUNT_PRIVATE_KEY: ${{ secrets.TEST_ACCOUNT_PRIVATE_KEY }}
# dev-starknet-rs-tests:
# needs: [validate_dev]
# uses: ./.github/workflows/starknet-rs-tests.yml
# secrets:
# STARKNET_RPC: ${{ secrets.DEV_SEPOLIA_URL }}/v0_6

# dev-starknet-js-tests:
# needs: [validate_dev]
# uses: ./.github/workflows/starknet-js-tests.yml
# secrets:
# TEST_RPC_URL: ${{ secrets.DEV_SEPOLIA_URL }}/v0_7
# TEST_ACCOUNT_ADDRESS: ${{ secrets.TEST_ACCOUNT_ADDRESS }}
# TEST_ACCOUNT_PRIVATE_KEY: ${{ secrets.TEST_ACCOUNT_PRIVATE_KEY }}

promote_to_staging:
needs: [build_docker_image, validate_dev]
Expand Down

0 comments on commit 7d0a29c

Please sign in to comment.