Skip to content

Commit

Permalink
ci(workflows): ensure docker image is working properly
Browse files Browse the repository at this point in the history
  • Loading branch information
tdakkota committed Dec 3, 2024
1 parent 9b7af49 commit 60d466b
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,28 @@ jobs:
- name: Run tests
run: cd examples && go test ./...

ensure-docker:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build image
run: |
docker buildx build . \
--platform linux/amd64 \
--tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_REF_NAME
- name: Check image
run: |
docker run \
-v ./_testdata/examples/petstore.yml:/petstore.yml \
--rm \
ghcr.io/$GITHUB_REPOSITORY:$GITHUB_REF_NAME /petstore.yml

0 comments on commit 60d466b

Please sign in to comment.