Skip to content

Commit

Permalink
push image after being tested
Browse files Browse the repository at this point in the history
  • Loading branch information
Kailai-Wang committed May 28, 2024
1 parent 6a205ce commit 50903a3
Showing 1 changed file with 23 additions and 14 deletions.
37 changes: 23 additions & 14 deletions .github/workflows/create-release-draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,6 @@ jobs:
echo "============================="
docker images
- name: Dockerhub login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Push docker image
run: |
docker push litentry/litentry-parachain:${{ env.RELEASE_TAG }}
- name: Generate genesis artefacts if need
if: github.event.inputs.genesis_release != 'none'
run: |
Expand All @@ -150,13 +140,18 @@ jobs:
run: |
docker cp $(docker create --rm litentry/litentry-parachain:${{ env.RELEASE_TAG }}):/usr/local/bin/litentry-collator .
- name: Save docker image
run: |
docker save litentry/litentry-parachain::${{ env.RELEASE_TAG }} | gzip > litentry-parachain-dev.tar.gz
- name: Upload the client binary
uses: actions/upload-artifact@v4
with:
name: litentry-collator
if-no-files-found: ignore
path: |
litentry-collator
litentry-parachain-dev.tar.gz
${{ env.GENESIS_RELEASE }}-genesis-state
${{ env.GENESIS_RELEASE }}-genesis-wasm
Expand Down Expand Up @@ -309,13 +304,18 @@ jobs:
with:
fetch-depth: 0

- name: Enable corepack and pnpm
run: corepack enable && corepack enable pnpm
- uses: actions/download-artifact@v4
with:
name: litentry-collator

- name: Download and tag docker image
- name: Load docker image
run: |
docker pull litentry/litentry-parachain:${{ env.RELEASE_TAG }}
docker load < litentry-parachain-dev.tar.gz
docker tag litentry/litentry-parachain:${{ env.RELEASE_TAG }} litentry/litentry-parachain:latest
docker images
- name: Enable corepack and pnpm
run: corepack enable && corepack enable pnpm

- name: Run ts tests for ${{ matrix.chain }}
timeout-minutes: 20
Expand All @@ -335,6 +335,15 @@ jobs:
run: |
make clean-docker-${{ matrix.chain }}
- name: Dockerhub login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Push docker image
run: |
docker push litentry/litentry-parachain:${{ env.RELEASE_TAG }}
## create the release draft ##
create-release-draft:
Expand Down

0 comments on commit 50903a3

Please sign in to comment.