Skip to content

Commit

Permalink
Feature/dockerhub (#34)
Browse files Browse the repository at this point in the history
* feat: docker hub integration

* feat: prepare 1.5.0

* feat: write changelog

Co-authored-by: Corentin <corentin.filoche@swan.io>
  • Loading branch information
Tchoupinax and Tchoupinax authored Sep 30, 2022
1 parent 1a0f381 commit d6c0ac3
Show file tree
Hide file tree
Showing 25 changed files with 1,662 additions and 738 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
!static
!store
!.babelrc
!nuxt.config.js
!nuxt.config.ts
!tailwind.config.js
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
export AWS_ACCESS_KEY=
export AWS_SECRET_KEY=
export DOCKERHUB_TOKEN=
export GITHUB_TOKEN=
25 changes: 25 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// https://github.com/nuxt/framework/discussions/2815#discussioncomment-2050408

{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:vue/essential",
"plugin:@typescript-eslint/recommended",
"@nuxtjs/eslint-config-typescript"
],
"parserOptions": {
"ecmaVersion": "latest",
"parser": "@typescript-eslint/parser",
"sourceType": "module"
},
"plugins": [
"vue",
"@typescript-eslint"
],
"rules": {}
}
27 changes: 0 additions & 27 deletions .eslintrc.js

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 1.5.0 | 2022-09-30

#### Features

- Allow to connect to DockerHub

## 1.4.2 | 2022-07-22

Allow passwordless auth for docker-registry v2 [#28](https://github.com/Tchoupinax/fuzzy-engine/issues/28)
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ FROM node:16-alpine

WORKDIR /app

COPY --from=builder /app/.output /app/.output/
COPY --from=builder /app/.output /app/.output

RUN npm install --omit=dev nuxt

Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
docker-build:
docker buildx build --platform linux/amd64,linux/arm64 -t tchoupinax/fuzzy-engine:latest . --push
docker buildx build --platform linux/amd64,linux/arm64 -t tchoupinax/fuzzy-engine:$(cat package.json | jq '.version' -r) . --push
docker buildx build --platform linux/amd64,linux/arm64 -t tchoupinax/fuzzy-engine:v$(cat package.json | jq '.version' -r) . --push
7 changes: 0 additions & 7 deletions layouts/README.md

This file was deleted.

8 changes: 0 additions & 8 deletions middleware/README.md

This file was deleted.

40 changes: 0 additions & 40 deletions nuxt.config.js

This file was deleted.

32 changes: 32 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import { defineNuxtConfig } from "@nuxt/bridge";

export default defineNuxtConfig({
target: "server",
head: {
title: "Docker registry UI",
meta: [
{ charset: "utf-8" },
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{
hid: "description",
name: "description",
content: process.env.npm_package_description || ""
}
],
link: [{ rel: "icon", type: "image/svg+xml", href: "/favicon.svg" }]
},
loading: { color: "#fff" },
css: [],
plugins: [
"~/plugins/clipboard.client.ts",
"~/plugins/notifications.client.ts"
],
buildModules: ["@nuxtjs/eslint-module", "@nuxtjs/tailwindcss"],
modules: ["@nuxtjs/axios", "@nuxtjs/pwa"],
axios: {
// NOTE Do not send proxy headers, if the UI is behind a reverse proxy with basic auth
// it will override authorization header and broke everything
proxyHeaders: false,
credentials: true
}
});
Loading

0 comments on commit d6c0ac3

Please sign in to comment.