Skip to content

Commit 06853ec

Browse files
authored
chore: rename trustification references to guacsec (#249)
* chore: rename trustification references to guacsec * chore: remove building OCI image in stage pipeline * chore: rename EXHORT_ opts to TRUSTIFY_DA_ * chore: move test url to env var
1 parent 3962c91 commit 06853ec

40 files changed

+358
-405
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
blank_issues_enabled: false
33
contact_links:
44
- name: GitHub Discussions
5-
url: https://github.com/trustification/exhort-javascript-api/discussions/
5+
url: https://github.com/guacsec/trustify-da-javascript-client/discussions/
66
about: You can also use Discussions for questions and ideas.

.github/workflows/pr.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,19 +91,27 @@ jobs:
9191

9292
- name: Run unit tests
9393
env:
94-
EXHORT_PYTHON3_PATH: "${{steps.python-location.outputs.python-bin-location}}/python3"
95-
EXHORT_PIP3_PATH: "${{steps.python-location.outputs.python-bin-location}}/pip3"
94+
TRUSTIFY_DA_PYTHON3_PATH: "${{steps.python-location.outputs.python-bin-location}}/python3"
95+
TRUSTIFY_DA_PIP3_PATH: "${{steps.python-location.outputs.python-bin-location}}/pip3"
96+
TRUSTIFY_DA_DEV_MODE: 'true'
97+
DEV_TRUSTIFY_DA_BACKEND_URL: 'https://exhort.stage.devshift.net'
9698
run: npm run test
9799

98100
- name: Compile project
99101
run: npm run compile
100102

101103
- name: Run integration tests
102104
run: npm run integration-tests
105+
env:
106+
TRUSTIFY_DA_DEV_MODE: 'true'
107+
DEV_TRUSTIFY_DA_BACKEND_URL: 'https://exhort.stage.devshift.net'
103108

104109
- name: Run integration tests cli
105110
working-directory: integration
106111
run: bash ./run_its.sh
112+
env:
113+
TRUSTIFY_DA_DEV_MODE: 'true'
114+
DEV_TRUSTIFY_DA_BACKEND_URL: 'https://exhort.stage.devshift.net'
107115

108116
- name: Upload coverage reports
109117
if: ${{ matrix.node == env.MAIN_NODE_VER }}

.github/workflows/release.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
---
22
name: Release
33

4-
env:
5-
# 🖊️ EDIT to change the image build settings.
6-
IMAGE_NAME: exhort-javascript-api
7-
IMAGE_REGISTRY: quay.io/ecosystem-appeng
8-
DOCKERFILE_PATH: ./docker-image/Dockerfiles/Dockerfile.alpha
9-
104
on:
115
workflow_dispatch:
126
inputs:

.github/workflows/stage.yml

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
---
22
name: Stage
33

4-
env:
5-
# 🖊️ EDIT to change the image build settings.
6-
IMAGE_NAME: exhort-javascript-api
7-
IMAGE_REGISTRY: quay.io/ecosystem-appeng
8-
DOCKERFILE_PATH: ./docker-image/Dockerfiles/Dockerfile
9-
104
on:
115
pull_request_target:
126
types:
@@ -29,7 +23,7 @@ jobs:
2923
stage:
3024
runs-on: ubuntu-latest
3125
# Branches that starts with `release/` shouldn't trigger this workflow, as these are triggering the release workflow.
32-
if: github.repository_owner == 'trustification' && github.event.pull_request.merged == true && !startsWith(github.head_ref, 'release/')
26+
if: github.repository_owner == 'guacsec' && github.event.pull_request.merged == true && !startsWith(github.head_ref, 'release/')
3327
environment: staging
3428
name: Stage the project
3529
steps:
@@ -126,6 +120,8 @@ jobs:
126120
if: steps.test-check.outputs.retest-is-needed == 'true'
127121
env:
128122
TRIGGERING_FILE: ${{ steps.test-check.outputs.triggering-file}}
123+
TRUSTIFY_DA_DEV_MODE: 'true'
124+
DEV_TRUSTIFY_DA_BACKEND_URL: 'https://exhort.stage.devshift.net'
129125
run: |
130126
echo "Re-test was triggered!!, triggering changed file - $TRIGGERING_FILE"
131127
echo "Running Again Unit-tests =>"
@@ -162,25 +158,3 @@ jobs:
162158
prerelease: true,
163159
generate_release_notes: true
164160
})
165-
166-
- name: Build Image With buildah
167-
id: build-image
168-
uses: redhat-actions/buildah-build@v2
169-
with:
170-
image: ${{ env.IMAGE_NAME }}
171-
tags: ${{ steps.bump.outputs.version }}
172-
dockerfiles: |
173-
${{ env.DOCKERFILE_PATH }}
174-
build-args: |
175-
PACKAGE_REGISTRY_ACCESS_TOKEN=${{ secrets.PACKAGE_REGISTRY_ACCESS_TOKEN }}
176-
EXHORT_JAVASCRIPT_API_VERSION=${{ steps.bump.outputs.version }}
177-
context: docker-image
178-
179-
- name: Push Image To Registry
180-
uses: redhat-actions/push-to-registry@v2
181-
with:
182-
image: ${{ steps.build-image.outputs.image }}
183-
tags: ${{ steps.build-image.outputs.tags }}
184-
registry: ${{ env.IMAGE_REGISTRY }}
185-
username: ${{ secrets.IMAGE_REGISTRY_USER }}
186-
password: ${{ secrets.IMAGE_REGISTRY_PASSWORD }}

.idea/modules.xml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CONTRIBUTING.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributing to *exhort-javascript-api*<br/>![nodejs-version][10]
1+
# Contributing to *trustify-da-javascript-client*<br/>![nodejs-version][10]
22

33
* Fork the repository
44
* Create a new branch
@@ -20,11 +20,11 @@
2020

2121
### Good to know
2222

23-
* You can override the default backend url by setting another one in the _EXHORT_URL_ environment variable.
23+
* You can override the default backend url by setting another one in the _TRUSTIFY_DA_URL_ environment variable.
2424

2525
### OpenAPI Specifications
2626

27-
The OpenAPI specification is located in the [`exhort-api-spec`](https://github.com/trustification/exhort-api-spec) where the Java and Javascript libraries are generated.
27+
The OpenAPI specification is located in the [`trustify-da-api-spec`](https://github.com/trustify-da/trustify-da-api-model) where the Java and Javascript libraries are generated.
2828

2929
### Code Walkthrough
3030

@@ -86,7 +86,7 @@ scripts in [integration/testers](integration/testers).<br/>
8686

8787
We have 3 _testers_:
8888
* [integration/testers/cli](integration/testers/cli) is a _package.json_ used for installing the _ESM module_.
89-
Invoking the CLI Script is done against the _@trustification/exhort-javascript-api/dist/src/cli.js_ in the tester's
89+
Invoking the CLI Script is done against the _@trustify-da/trustify-da-javascript-client/dist/src/cli.js_ in the tester's
9090
_node_modules_.
9191
* [integration/testers/javascript](integration/testers/javascript) is a _javascript_ script invoking the _ESM module_.
9292
* [integration/testers/typescript](integration/testers/typescript) is a _typescript_ script invoking the _ESM module_.
@@ -100,10 +100,10 @@ Run integration tests from the project's root:
100100
```
101101

102102
Integration tests are executed against a mocked _Backend_ server.<br/>
103-
If you need to run against the actual _Backend_ server, use the _EXHORT_ITS_USE_REAL_API_ environment variable:
103+
If you need to run against the actual _Backend_ server, use the _TRUSTIFY_DA_ITS_USE_REAL_API_ environment variable:
104104

105105
```shell
106-
(cd integration/ && EXHORT_ITS_USE_REAL_API=true bash ./run_its.sh)
106+
(cd integration/ && TRUSTIFY_DA_ITS_USE_REAL_API=true bash ./run_its.sh)
107107
```
108108

109109
The mocked server implementation is [integration/server/mock_server.js](integration/server/mock_server.js). See the
@@ -119,7 +119,7 @@ contribution. See the [DCO](DCO) file for details.
119119

120120
<!-- Real links -->
121121
[0]: https://www.conventionalcommits.org/en/v1.0.0/
122-
[1]: https://github.com/trustification/exhort/blob/0.1.x/src/main/resources/META-INF/openapi.yaml
122+
[1]: https://github.com/guacsec/exhort/blob/0.1.x/src/main/resources/META-INF/openapi.yaml
123123

124124
<!-- Badge links -->
125125
[10]: https://badgen.net/badge/NodeJS%20Version/18/68a063

0 commit comments

Comments
 (0)