File tree Expand file tree Collapse file tree 4 files changed +65
-1
lines changed
Expand file tree Collapse file tree 4 files changed +65
-1
lines changed Original file line number Diff line number Diff line change 1+ #
2+ # This file is part of Edgehog.
3+ #
4+ # Copyright 2025 SECO Mind Srl
5+ #
6+ # Licensed under the Apache License, Version 2.0 (the "License");
7+ # you may not use this file except in compliance with the License.
8+ # You may obtain a copy of the License at
9+ #
10+ # http://www.apache.org/licenses/LICENSE-2.0
11+ #
12+ # Unless required by applicable law or agreed to in writing, software
13+ # distributed under the License is distributed on an "AS IS" BASIS,
14+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+ # See the License for the specific language governing permissions and
16+ # limitations under the License.
17+ #
18+ # SPDX-License-Identifier: Apache-2.0
19+ #
20+
21+ name : export-container
22+ description : " Export backend conteatiner into a `backend.tar` artifact."
23+ runs :
24+ using : " composite"
25+ steps :
26+ - name : Create image tar
27+ shell : bash
28+ run : |
29+ docker image save edgehogdevicemanager/edgehog-backend:latest -o backend.tar
30+ - uses : actions/upload-artifact@v4
31+ with :
32+ path : backend.tar
33+ name : backend.tar
34+ if-no-files-found : error
Original file line number Diff line number Diff line change 1+ #
2+ # This file is part of Edgehog.
3+ #
4+ # Copyright 2025 SECO Mind Srl
5+ #
6+ # Licensed under the Apache License, Version 2.0 (the "License");
7+ # you may not use this file except in compliance with the License.
8+ # You may obtain a copy of the License at
9+ #
10+ # http://www.apache.org/licenses/LICENSE-2.0
11+ #
12+ # Unless required by applicable law or agreed to in writing, software
13+ # distributed under the License is distributed on an "AS IS" BASIS,
14+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+ # See the License for the specific language governing permissions and
16+ # limitations under the License.
17+ #
18+ # SPDX-License-Identifier: Apache-2.0
19+ #
20+
21+ name : import container
22+ description : " Export backend conteatiner into a `backend.tar` artifact."
23+ runs :
24+ using : " composite"
25+ steps :
26+ - uses : actions/download-artifact@v5
27+ - name : Import backend container
28+ shell : bash
29+ run : |
30+ docker image load < backend.tar
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ _init-edgehog:
104104_ create-edgehog-tenant edgehog -hostname = " api.edgehog.localhost":
105105 #!/usr/bin/env bash
106106 admin_jwt=$(cat backend/ priv/ repo/ seeds/ keys/ admin_jwt.txt)
107- curl -sf -X POST " http://{{ edgehog-hostname}} /admin-api/v1/tenants" \
107+ curl --fail-with-body -X POST " http://{{ edgehog-hostname}} /admin-api/v1/tenants" \
108108 - H " Content-Type: application/vnd.api+json" \
109109 - H " Accept: application/vnd.api+json" \
110110 - H " Authorization: Bearer $admin_jwt" \
You can’t perform that action at this time.
0 commit comments