Skip to content

Commit c4f9806

Browse files
authored
chore: add gha integration test (#397)
1 parent f732424 commit c4f9806

File tree

3 files changed

+34
-5
lines changed

3 files changed

+34
-5
lines changed

.docker/Dockerfile-alpine

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
FROM alpine:3.20
22

3+
RUN apk add -U --no-cache ca-certificates libssl3 libcrypto3 bash
4+
35
RUN addgroup -S ory; \
46
adduser -S ory -G ory -D -h /home/ory -s /bin/nologin; \
57
chown -R ory:ory /home/ory
68

7-
RUN apk add -U --no-cache ca-certificates libssl3 libcrypto3
8-
99
COPY ory /usr/bin/ory
1010

1111
USER ory

.docker/Dockerfile-build

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ RUN CGO_CFLAGS="-D_LARGEFILE64_SOURCE" go build -tags sqlite,json1 -o /usr/bin/o
1818

1919
FROM alpine:3.20
2020

21+
RUN apk add -U --no-cache ca-certificates bash
22+
RUN apk upgrade --no-cache libssl3 libcrypto3
23+
2124
RUN addgroup -S ory; \
2225
adduser -S ory -G ory -D -h /home/ory -s /bin/nologin; \
2326
chown -R ory:ory /home/ory
2427

25-
RUN apk add -U --no-cache ca-certificates
26-
RUN apk upgrade --no-cache libssl3 libcrypto3
27-
2828
COPY --from=builder /usr/bin/ory /usr/bin/ory
2929

3030
# Exposing the ory home directory to simplify passing in Kratos configuration (e.g. if the file $HOME/.kratos.yaml
+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: dogfood integration test
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
- master
9+
10+
env:
11+
ORY_PROJECT_ID: "6c2ec103-0b67-4cfe-a975-8008ede7d2ff"
12+
ORY_WORKSPACE_ID: "d4c796bf-6062-4cf0-87fc-5fcbf41743bb"
13+
ORY_WORKSPACE_API_KEY: ${{ secrets.ORY_WORKSPACE_API_KEY }}
14+
15+
jobs:
16+
gha:
17+
runs-on: ubuntu-latest
18+
container:
19+
image: oryd/ory:v1.1.0
20+
# temporary until we release new image
21+
options: --user root
22+
steps:
23+
- name: checkout
24+
uses: actions/checkout@v4
25+
# temporary until we release new image
26+
- name: add bash
27+
run: apk add bash
28+
- name: Check integration
29+
run: ory get project ${{ env.ORY_PROJECT_ID }}

0 commit comments

Comments
 (0)