Skip to content

Commit

Permalink
chore: add gha integration test (#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
Demonsthere authored Dec 5, 2024
1 parent f732424 commit c4f9806
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .docker/Dockerfile-alpine
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM alpine:3.20

RUN apk add -U --no-cache ca-certificates libssl3 libcrypto3 bash

RUN addgroup -S ory; \
adduser -S ory -G ory -D -h /home/ory -s /bin/nologin; \
chown -R ory:ory /home/ory

RUN apk add -U --no-cache ca-certificates libssl3 libcrypto3

COPY ory /usr/bin/ory

USER ory
Expand Down
6 changes: 3 additions & 3 deletions .docker/Dockerfile-build
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ RUN CGO_CFLAGS="-D_LARGEFILE64_SOURCE" go build -tags sqlite,json1 -o /usr/bin/o

FROM alpine:3.20

RUN apk add -U --no-cache ca-certificates bash
RUN apk upgrade --no-cache libssl3 libcrypto3

RUN addgroup -S ory; \
adduser -S ory -G ory -D -h /home/ory -s /bin/nologin; \
chown -R ory:ory /home/ory

RUN apk add -U --no-cache ca-certificates
RUN apk upgrade --no-cache libssl3 libcrypto3

COPY --from=builder /usr/bin/ory /usr/bin/ory

# Exposing the ory home directory to simplify passing in Kratos configuration (e.g. if the file $HOME/.kratos.yaml
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/test-integration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: dogfood integration test
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
- master

env:
ORY_PROJECT_ID: "6c2ec103-0b67-4cfe-a975-8008ede7d2ff"
ORY_WORKSPACE_ID: "d4c796bf-6062-4cf0-87fc-5fcbf41743bb"
ORY_WORKSPACE_API_KEY: ${{ secrets.ORY_WORKSPACE_API_KEY }}

jobs:
gha:
runs-on: ubuntu-latest
container:
image: oryd/ory:v1.1.0
# temporary until we release new image
options: --user root
steps:
- name: checkout
uses: actions/checkout@v4
# temporary until we release new image
- name: add bash
run: apk add bash
- name: Check integration
run: ory get project ${{ env.ORY_PROJECT_ID }}

0 comments on commit c4f9806

Please sign in to comment.