Compare commits

...

3 Commits
2.0.8 ... 2.0.9

Author SHA1 Message Date
Joxit
21e3ad51af fix(warn): Refused to get unsafe header "www-authenticate" 2021-09-13 09:14:00 +02:00
Joxit
73613a3b96 fix: The tag seo is not a recognized Liquid tag. 2021-09-11 15:52:51 +02:00
Joxit
6da744a9c5 ci: add major and patch tag versions 2021-08-25 07:48:41 +02:00
5 changed files with 22 additions and 9 deletions

View File

@@ -15,9 +15,15 @@ jobs:
run: npm install
- name: Build the interface
run: npm run build
- name: Current tag
id: current-tag
- name: Major tag
id: major-tag
run: echo "::set-output name=tag::$(git describe --tags | grep -o '^[0-9]*')"
- name: Minor tag
id: minor-tag
run: echo "::set-output name=tag::$(git describe --tags | grep -o '^[0-9]*\.[0-9]*')"
- name: Patch tag
id: patch-tag
run: echo "::set-output name=tag::$(git describe --tags | grep -o '^[0-9]*\.[0-9]*\.[0-9]*')"
- name: Download kokai
run: curl -sSL https://github.com/Joxit/kokai/releases/download/$(curl -sSL https://api.github.com/repos/Joxit/kokai/releases/latest | jq -r ".tag_name")/kokai-linux-x86_64 > kokai
- name: Create Release Note
@@ -51,7 +57,9 @@ jobs:
push: true
tags: |
joxit/docker-registry-ui:latest
joxit/docker-registry-ui:${{steps.current-tag.outputs.tag}}
joxit/docker-registry-ui:${{steps.major-tag.outputs.tag}}
joxit/docker-registry-ui:${{steps.minor-tag.outputs.tag}}
joxit/docker-registry-ui:${{steps.patch-tag.outputs.tag}}
- name: Build and push Latest Debian Version
uses: docker/build-push-action@v2
with:
@@ -61,4 +69,6 @@ jobs:
push: true
tags: |
joxit/docker-registry-ui:debian
joxit/docker-registry-ui:${{steps.current-tag.outputs.tag}}-debian
joxit/docker-registry-ui:${{steps.major-tag.outputs.tag}}-debian
joxit/docker-registry-ui:${{steps.minor-tag.outputs.tag}}-debian
joxit/docker-registry-ui:${{steps.patch-tag.outputs.tag}}-debian

View File

@@ -12,4 +12,6 @@ defaults:
- scope:
path: ""
values:
image: /screenshot.png
image: /screenshot.png
plugins:
- jekyll-seo-tag

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
{
"name": "docker-registry-ui",
"version": "2.0.8",
"version": "2.0.9",
"scripts": {
"start": "ROLLUP_SERVE=true rollup -c -w",
"build": "rollup -c",

View File

@@ -53,7 +53,8 @@ export class Http {
case 'loadend': {
self.oReq.addEventListener('loadend', function () {
if (this.status == 401 && !this.withCredentials) {
const tokenAuth = parseAuthenticateHeader(this.getResponseHeader('www-authenticate'));
const tokenAuth =
this.hasHeader('www-authenticate') && parseAuthenticateHeader(this.getResponseHeader('www-authenticate'));
self.onAuthentication(tokenAuth, (bearer) => {
const req = new XMLHttpRequest();
req._url = self._url;
@@ -65,7 +66,7 @@ export class Http {
req.setRequestHeader(key, self._headers[key]);
}
if (bearer && bearer.token) {
req.setRequestHeader('Authorization', `Bearer ${bearer.token}`)
req.setRequestHeader('Authorization', `Bearer ${bearer.token}`);
} else {
req.withCredentials = true;
}