Skip to content

test: do not merge #1110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 17 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true

env:
GIT_LFS_SKIP_SMUDGE: 1

Expand All @@ -25,12 +29,12 @@ jobs:
matrix:
images:
- path: "docker/namadillo/Dockerfile"
tag: "namadillo"
tag: "namadillo-main"
- path: "docker/faucet/Dockerfile"
tag: "faucet-interface"
tag: "faucet-interface-main"

steps:
- name: Checkout repo
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand All @@ -42,12 +46,19 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository_owner }}/namada-interface
tags: type=raw,value=${{ matrix.images.tag }}
- name: Build and Push docker image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
context: .
file: ${{ matrix.images.path }}
push: ${{ github.ref == 'refs/heads/main' }}
tags: ${{ matrix.images.tag }}-latest, ${{ matrix.images.tag }}-main
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
4 changes: 1 addition & 3 deletions apps/faucet/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ require("dotenv").config({ path: resolve(__dirname, ".env") });

const { NODE_ENV } = process.env;

const ASSET_PATH = "/";

const createStyledComponentsTransformer =
require("typescript-plugin-styled-components").default;

Expand Down Expand Up @@ -62,7 +60,7 @@ module.exports = {
faucet: "./src",
},
output: {
publicPath: ASSET_PATH,
publicPath: "",
path: resolve(__dirname, `./build/`),
filename: "[name].bundle.js",
},
Expand Down
6 changes: 3 additions & 3 deletions docker/faucet/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ server {
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ $uri.html /index.html;
rewrite ^([^.]*[^/])$ $1/ permanent;
try_files $uri $uri/ =404;
}
gzip on;
gzip_types text/plain text/css application/javascript application/json application/vnd.ms-fontobject application/xml+rss application/atom+xml font/opentype font/ttf image/svg+xml;
gzip off;
}
Loading