Skip to content

Commit

Permalink
.github: adjust workflows for s3gw-tech
Browse files Browse the repository at this point in the history
Signed-off-by: Joao Eduardo Luis <[email protected]>
  • Loading branch information
jecluis committed Mar 19, 2024
1 parent 3d6dbe5 commit 09aed86
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-image-on-pr-label.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Checkout s3gw
uses: actions/checkout@v3
with:
repository: aquarist-labs/s3gw
repository: s3gw-tech/s3gw
path: s3gw
submodules: false

Expand All @@ -29,6 +29,7 @@ jobs:
with:
path: s3gw/ceph
submodules: recursive
fetch-depth: 0

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand Down Expand Up @@ -56,7 +57,6 @@ jobs:
build-args: |
CMAKE_BUILD_TYPE=Release
S3GW_VERSION=${{ env.IMAGE_TAG }}
NPROC=16
QUAY_EXPIRATION=1w
SRC_S3GW_DIR=s3gw
tags: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-add-to-project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ jobs:
steps:
- uses: jecluis/[email protected]
with:
project-url: https://github.com/orgs/aquarist-labs/projects/5
project-url: https://github.com/orgs/s3gw-tech/projects/1
gh-token: ${{ secrets.PAT_S3GW_PROJECT_ADD }}
default-pr-status: "In review"
13 changes: 7 additions & 6 deletions .github/workflows/test-s3gw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
tests:
runs-on: self-hosted

permissions:
contents: write

steps:

- name: Checkout ceph
Expand All @@ -36,14 +39,14 @@ jobs:
- name: Checkout s3gw
uses: actions/checkout@v3
with:
repository: aquarist-labs/s3gw
repository: s3gw-tech/s3gw
path: s3gw
submodules: false

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: 3.11

- name: Install Dependencies
run: |
Expand All @@ -57,7 +60,6 @@ jobs:
run: |
docker build \
--build-arg CMAKE_BUILD_TYPE=Debug \
--build-arg NPROC=16 \
--file s3gw/Dockerfile \
--tag s3gw-unittests:${IMAGE_TAG} \
--target s3gw-unittests \
Expand All @@ -71,7 +73,6 @@ jobs:
run: |
docker build \
--build-arg CMAKE_BUILD_TYPE=Debug \
--build-arg NPROC=16 \
--build-arg SRC_S3GW_DIR=s3gw \
--file s3gw/Dockerfile \
--tag s3gw:${IMAGE_TAG} \
Expand Down Expand Up @@ -132,7 +133,7 @@ jobs:
-v /run/docker.sock:/run/docker.sock \
-v ${GITHUB_WORKSPACE}/s3tr-out:/out \
--pull=always \
ghcr.io/aquarist-labs/s3tr:latest \
ghcr.io/s3gw-tech/s3tr:latest \
run \
--image s3gw:${IMAGE_TAG} \
--docker-api unix:///run/docker.sock \
Expand All @@ -152,7 +153,7 @@ jobs:
docker run --rm \
-v ${GITHUB_WORKSPACE}/s3tr-out:/out \
-v ${GITHUB_WORKSPACE}/ceph:/ceph:ro \
ghcr.io/aquarist-labs/s3tr:latest \
ghcr.io/s3gw-tech/s3tr:latest \
analyze summary \
/out/s3tr.json \
/ceph/qa/rgw/store/sfs/tests/fixtures/s3tr_excuses.csv

0 comments on commit 09aed86

Please sign in to comment.