|
13 | 13 | build-binaries: |
14 | 14 | name: Build Branch |
15 | 15 | runs-on: ubicloud-standard-16 |
16 | | - container: ghcr.io/frequency-chain/frequency/ci-base-image:1.5.0 |
| 16 | + container: ghcr.io/frequency-chain/frequency/ci-base-image:1.5.5 |
17 | 17 | env: |
18 | 18 | BIN_DIR: target/release |
19 | 19 | steps: |
|
31 | 31 | - name: Upload Artifact |
32 | 32 | uses: actions/upload-artifact@v4 |
33 | 33 | with: |
34 | | - name: artifacts-binary-westend-${{github.run_id}} |
| 34 | + name: artifacts-binary-testnet-westend-${{github.run_id}} |
35 | 35 | path: ${{env.BIN_DIR}}/frequency |
36 | 36 | if-no-files-found: error |
| 37 | + |
| 38 | + release-node-images: |
| 39 | + needs: build-binaries |
| 40 | + name: Release ${{matrix.arch}} Node Docker Image for ${{matrix.network}} |
| 41 | + strategy: |
| 42 | + fail-fast: true |
| 43 | + matrix: |
| 44 | + arch: [amd64] |
| 45 | + network: [testnet-westend] |
| 46 | + build-profile: [release] |
| 47 | + docker-platform: [linux/amd64] |
| 48 | + release-file-name-prefix: [frequency-testnet-westend] |
| 49 | + env: |
| 50 | + DOCKER_HUB_PROFILE: frequencychain |
| 51 | + IMAGE_NAME: parachain-node |
| 52 | + NEW_RELEASE_TAG: v0.0.1 |
| 53 | + runs-on: ubuntu-24.04 |
| 54 | + steps: |
| 55 | + - name: Set Env Vars |
| 56 | + run: | |
| 57 | + echo "BIN_DIR=target/${{matrix.build-profile}}" >> $GITHUB_ENV |
| 58 | + echo "BUILT_BIN_FILENAME=frequency" >> $GITHUB_ENV |
| 59 | + echo "RELEASE_BIN_FILENAME=${{matrix.release-file-name-prefix}}.${{matrix.arch}}" >> $GITHUB_ENV |
| 60 | + - name: Check Out Repo |
| 61 | + uses: actions/checkout@v4 |
| 62 | + - name: Download Binaries |
| 63 | + id: download-binaries |
| 64 | + uses: actions/download-artifact@v4 |
| 65 | + with: |
| 66 | + pattern: artifacts-binary-${{matrix.network}}-${{github.run_id}} |
| 67 | + path: . |
| 68 | + - name: Extract and List Downloaded Binaries |
| 69 | + run: | |
| 70 | + download_dir=${{steps.download-binaries.outputs.download-path}} |
| 71 | + mv "${download_dir}"/artifacts*/* "${download_dir}" |
| 72 | + echo "Download dir: $download_dir" |
| 73 | + echo "Downloaded binaries: $(ls -l $download_dir)" |
| 74 | + - name: Move Binary to Target Dir |
| 75 | + run: | |
| 76 | + mkdir -p ${{env.BIN_DIR}} |
| 77 | + mv ${{env.RELEASE_BIN_FILENAME}} ${{env.BIN_DIR}}/${{env.BUILT_BIN_FILENAME}} |
| 78 | + chmod +x ${{env.BIN_DIR}}/${{env.BUILT_BIN_FILENAME}} |
| 79 | + - name: Set up QEMU |
| 80 | + uses: docker/setup-qemu-action@v3 |
| 81 | + with: |
| 82 | + platforms: ${{matrix.arch}} |
| 83 | + - name: Set up Docker Buildx |
| 84 | + uses: docker/setup-buildx-action@v3 |
| 85 | + - name: Login to DockerHub |
| 86 | + uses: docker/login-action@v3 |
| 87 | + with: |
| 88 | + username: ${{secrets.DOCKERHUB_USERNAME}} |
| 89 | + password: ${{secrets.DOCKERHUB_TOKEN}} |
| 90 | + - name: Build and Push Parachain Image |
| 91 | + uses: docker/build-push-action@v6 |
| 92 | + with: |
| 93 | + context: . |
| 94 | + platforms: ${{matrix.docker-platform}} |
| 95 | + push: true |
| 96 | + file: ./docker/${{env.IMAGE_NAME}}.dockerfile |
| 97 | + tags: | |
| 98 | + ${{env.DOCKER_HUB_PROFILE}}/${{env.IMAGE_NAME}}-${{matrix.network}}:${{env.NEW_RELEASE_TAG}} |
0 commit comments