generated from dymensionxyz/rollapp
-
Notifications
You must be signed in to change notification settings - Fork 21
48 lines (41 loc) · 1.24 KB
/
e2e_test_upgrade.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: E2E Tests Upgrade
on:
workflow_dispatch:
permissions:
contents: read
packages: write
jobs:
build-image:
runs-on: ubuntu-latest
outputs:
UPGRADE_NAME: ${{ steps.set-output.outputs.upgrade }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set environment variable
id: set-output
run: |
upgradeName=$(ls -d -- ./app/upgrades/v* | sort -Vr | head -n 1 | xargs basename)
echo "upgrade=$upgradeName" >> $GITHUB_OUTPUT
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and export
uses: docker/build-push-action@v5
with:
file: Dockerfile
context: .
outputs: type=docker,dest=/tmp/e2e.tar
platforms: linux/amd64
tags: |
ghcr.io/dymensionxyz/dymension:e2e
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: e2e
path: /tmp/e2e.tar
e2e-tests-upgrade:
needs: build-image
uses: dymensionxyz/e2e-tests/.github/workflows/e2e-test-rollapp-wasm-upgrade-workflow-call.yml@main
with:
dymension_ci: "e2e"
upgrade_name: "${{ needs.build-image.outputs.UPGRADE_NAME }}"