Skip to content

Commit 475474a

Browse files
committed
2 parents ad59267 + 1dad122 commit 475474a

File tree

4 files changed

+48
-6
lines changed

4 files changed

+48
-6
lines changed

.github/fiware/image-clone.sh

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
set -e
2+
3+
SOURCE="ging/fiware-pep-proxy"
4+
DOCKER_TARGET="fiware/pep-proxy"
5+
QUAY_TARGET="quay.io/fiware/pep-proxy"
6+
7+
# DOCKER_TARGET="fiware/$(basename $(git rev-parse --show-toplevel))"
8+
# QUAY_TARGET="quay.io/fiware/$(basename $(git rev-parse --show-toplevel))"
9+
10+
VERSION=$(git describe --exclude 'FIWARE*' --tags $(git rev-list --tags --max-count=1))
11+
12+
function clone {
13+
echo 'cloning from '"$1 $2"' to '"$3"
14+
docker pull -q "$1":"$2"
15+
docker tag "$1":"$2" "$3":"$2"
16+
docker push -q "$3":"$2"
17+
18+
if ! [ -z "$4" ]; then
19+
echo 'pushing '"$1 $2"' to latest'
20+
docker tag "$1":"$2" "$3":latest
21+
docker push -q "$3":latest
22+
fi
23+
}
24+
25+
for i in "$@" ; do
26+
if [[ $i == "docker" ]]; then
27+
28+
clone "$SOURCE" "$VERSION" "$DOCKER_TARGET" true
29+
clone "$SOURCE" "$VERSION"-distroless "$DOCKER_TARGET"
30+
fi
31+
if [[ $i == "quay" ]]; then
32+
clone "$SOURCE" "$VERSION" "$QUAY_TARGET" true
33+
clone "$SOURCE" "$VERSION"-distroless "$QUAY_TARGET"
34+
fi
35+
echo ""
36+
done
37+
38+
for i in "$@" ; do
39+
if [[ $i == "clean" ]]; then
40+
docker rmi -f $(docker images -a -q) | true
41+
fi
42+
done

.husky/pre-commit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npm run pre-commit
4+
# npm run pre-commit

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![FIWARE Security](https://nexus.lab.fiware.org/static/badges/chapters/security.svg)](https://www.fiware.org/developers/catalogue/)
44
[![License: MIT](https://img.shields.io/github/license/ging/fiware-pep-proxy.svg)](https://opensource.org/licenses/MIT)
5-
[![Docker badge](https://img.shields.io/docker/pulls/fiware/pep-proxy.svg)](https://hub.docker.com/r/fiware/pep-proxy/)
5+
[![Docker badge](https://img.shields.io/badge/quay.io-fiware%2Fpep--proxy-grey?logo=red%20hat&labelColor=EE0000)](https://quay.io/repository/fiware/pep-proxy)
66
[![Support badge](https://img.shields.io/badge/tag-fiware--wilma-orange.svg?logo=stackoverflow)](https://stackoverflow.com/questions/tagged/fiware-wilma)
77
<br>
88
[![Documentation badge](https://img.shields.io/readthedocs/fiware-pep-proxy.svg)](https://fiware-pep-proxy.readthedocs.io/en/latest/)
@@ -20,7 +20,7 @@ different access levels for your users.
2020
This project is part of [FIWARE](https://www.fiware.org/). For more information check the FIWARE Catalogue entry for
2121
[Security](https://github.com/Fiware/catalogue/tree/master/security).
2222

23-
| :books: [Documentation](https://fiware-pep-proxy.readthedocs.io/en/latest/) | :mortar_board: [Academy](https://fiware-academy.readthedocs.io/en/latest/security/wilma) | :whale: [Docker Hub](https://hub.docker.com/r/fiware/pep-proxy/) | :dart: [Roadmap](https://github.com/ging/fiware-pep-proxy/blob/master/roadmap.md) |
23+
| :books: [Documentation](https://fiware-pep-proxy.readthedocs.io/en/latest/) | :mortar_board: [Academy](https://fiware-academy.readthedocs.io/en/latest/security/wilma) | <img style="height:1em" src="https://quay.io/static/img/quay_favicon.png"/> [quay.io](https://quay.io/repository/fiware/pep-proxy) | :dart: [Roadmap](https://github.com/ging/fiware-pep-proxy/blob/master/roadmap.md) |
2424
| --------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | --------------------------------------------------------------------------------- |
2525

2626

@@ -198,4 +198,4 @@ This project is part of [FIWARE](https://www.fiware.org/) and has been rated as
198198

199199
Wilma PEP Proxy is licensed under the [MIT](LICENSE) License.
200200

201-
© 2018 - 2022 Universidad Politécnica de Madrid.
201+
© 2018 - 2023 Universidad Politécnica de Madrid.

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)