diff --git a/.github/workflows/release-euro-demo.yml b/.github/workflows/release-euro-demo.yml new file mode 100644 index 00000000..36a1ea46 --- /dev/null +++ b/.github/workflows/release-euro-demo.yml @@ -0,0 +1,50 @@ +name: 'Build and push the euroe demo' +on: + push: + tags: + - release/euroe-demo/*.*.* + + workflow_dispatch: # allows manual trigger from main + +env: + REGISTRY: docker.io + IMAGE_NAME: dapps-euroe-demo + +jobs: + publish-docker-image: + runs-on: ubuntu-latest + environment: testnet-deployments + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + submodules: recursive + # Uses the `docker/login-action` action to log in to the Container registry. + - name: Log in to the Container registry + uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 + with: + registry: ${{ env.REGISTRY }} + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Extract version tag from package.json + id: meta + run: | + export VERSION=$(jq -r .version apps/voting/package.json) + export FULL_IMAGE_TAG="${{ env.REGISTRY }}/concordium/$IMAGE_NAME:$VERSION" + echo "::notice FULL_IMAGE_TAG=${FULL_IMAGE_TAG}" + # Make sure the image does not exist. Abort if we can retrieve any metadata. + if docker manifest inspect ${FULL_IMAGE_TAG} > /dev/null; then + echo "::error ${FULL_IMAGE_TAG} already exists" + exit 1 + else + # Store the full image tag into a tag variable for the following step. + echo "tag=${FULL_IMAGE_TAG}" > "$GITHUB_OUTPUT" + fi + - name: Build and push Docker image + uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 + with: + context: euroe-demo + file: ./euroe-demo/scripts/Dockerfile + push: true + platforms: linux/amd64 + tags: ${{ steps.meta.outputs.tag }} diff --git a/euroe-demo/CHANGELOG.md b/euroe-demo/CHANGELOG.md new file mode 100644 index 00000000..9595bc7b --- /dev/null +++ b/euroe-demo/CHANGELOG.md @@ -0,0 +1,7 @@ +## 0.2.0 + +Add support for wallet-connect. + +## 0.1.0 + +Initial version. diff --git a/euroe-demo/image/favicon.svg b/euroe-demo/image/favicon.svg new file mode 100644 index 00000000..90f71d98 --- /dev/null +++ b/euroe-demo/image/favicon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/euroe-demo/index.html b/euroe-demo/index.html index 561c5807..a8c56260 100644 --- a/euroe-demo/index.html +++ b/euroe-demo/index.html @@ -4,6 +4,7 @@