Skip to content

Commit 31700d4

Browse files
committed
Docker image for the Frequency-Testnet-Westend
1 parent dcad895 commit 31700d4

File tree

1 file changed

+64
-2
lines changed

1 file changed

+64
-2
lines changed

.github/workflows/build-westend.yml

Lines changed: 64 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
build-binaries:
1414
name: Build Branch
1515
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
1717
env:
1818
BIN_DIR: target/release
1919
steps:
@@ -31,6 +31,68 @@ jobs:
3131
- name: Upload Artifact
3232
uses: actions/upload-artifact@v4
3333
with:
34-
name: artifacts-binary-westend-${{github.run_id}}
34+
name: artifacts-binary-testnet-westend-${{github.run_id}}
3535
path: ${{env.BIN_DIR}}/frequency
3636
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

Comments
 (0)