Skip to content

Commit

Permalink
Add favicon, build job for euroe demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
abizjak committed Apr 2, 2024
1 parent 640899a commit 70f1a70
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 1 deletion.
50 changes: 50 additions & 0 deletions .github/workflows/release-euro-demo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: 'Build and push the euroe demo'

Check failure on line 1 in .github/workflows/release-euro-demo.yml

View workflow job for this annotation

GitHub Actions / publish-docker-image

.github/workflows/release-euro-demo.yml#L1

This run was manually canceled.
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 }}
7 changes: 7 additions & 0 deletions euroe-demo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## 0.2.0

Add support for wallet-connect.

## 0.1.0

Initial version.
1 change: 1 addition & 0 deletions euroe-demo/image/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions euroe-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Demo of store using EUROe</title>
<link rel="icon" type="image/x-icon" href="/favicon.svg">
</head>
<body>
<div id="root"></div>
Expand Down
2 changes: 1 addition & 1 deletion euroe-demo/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "euroe-demo",
"private": true,
"version": "0.0.0",
"version": "0.2.0",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
1 change: 1 addition & 0 deletions euroe-demo/scripts/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ RUN corepack yarn build

FROM nginx
COPY --from=build ./app/dist ./usr/share/nginx/html
COPY ./image/favicon.svg ./usr/share/nginx/html/favicon.svg
COPY ./scripts/nginx.conf /etc/nginx/conf.d/default.conf

0 comments on commit 70f1a70

Please sign in to comment.