Skip to content

Commit

Permalink
chore: u
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-jonas committed Mar 4, 2024
1 parent 244de01 commit 8683d1e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/docker-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,19 @@ jobs:
- run: sudo chown runner:docker /var/run/docker.sock
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Push to Docker Hub
- name: Build docker image
uses: docker/build-push-action@v5
with:
tags: oryd/sdk:${{ github.sha }}
push: false
outputs: type=docker,dest=./sdk.tar
- name: run generate.sh
run: |
docker load --input ./sdk.tar
docker run --mount type=bind,source="$(pwd)",target=/project -e FORCE_PROJECT=client -e FORCE_VERSION=$(cat ./spec/client/latest) -i oryd/sdk:${{ github.sha }} /bin/sh -c "cd /project && ./scripts/generate.sh && ./scripts/test.sh"
- name: upload artifacts
uses: actions/upload-artifact@v2
with:
name: oryd-sdk-${{ github.sha }}
path: ./sdk.tar
- name: run generate.sh and test.sh
run: |
docker load --input ./sdk.tar
rm ./sdk.tar
docker run --mount type=bind,source="$(pwd)",target=/project -e FORCE_PROJECT=client -e FORCE_VERSION=$(cat ./spec/client/latest) -i oryd/sdk:${{ github.sha }} /bin/sh -c "cd /project && ./scripts/generate.sh && ./scripts/test.sh"

0 comments on commit 8683d1e

Please sign in to comment.