Compare commits

...

5 Commits

Author SHA1 Message Date
Dimitrios Vasilas 17591e15c1 use sudo 2023-01-31 07:48:18 -05:00
Dimitrios Vasilas 0191c02c60 use artifacts dir 2023-01-31 07:41:44 -05:00
Dimitrios Vasilas 66ee95bed0 debug 2023-01-31 07:37:11 -05:00
Dimitrios Vasilas cd61f23d5e update docker-compose 2023-01-31 07:31:52 -05:00
Dimitrios Vasilas fcbcd122ae WIP build federation image 2023-01-31 06:50:05 -05:00
2 changed files with 10 additions and 20 deletions

View File

@ -8,6 +8,8 @@ services:
- /tmp/ssl-kmip:/ssl-kmip
- ${HOME}/.aws/credentials:/root/.aws/credentials
- /tmp/artifacts/${JOB_NAME}:/artifacts
- /tmp/artifacts/${JOB_NAME}:/logs
- ${CONF_DIR}:/conf
environment:
- CI=true
- ENABLE_LOCAL_CACHE=true

View File

@ -146,31 +146,19 @@ jobs:
uses: docker/build-push-action@v3
with:
push: true
file: images/svc-base/Dockerfile
context: .
provenance: false
tags: |
ghcr.io/${{ github.repository }}/cloudserver:${{ github.sha }}
registry.scality.com/cloudserver-dev/cloudserver:${{ github.sha }}
registry.scality.com/cloudserver-dev/cloudserver:${{ github.sha }}-svc-base
cache-from: type=gha,scope=cloudserver
cache-to: type=gha,mode=max,scope=cloudserver
build-federation-image:
uses: scality/workflows/.github/workflows/docker-build.yaml@v1
secrets: inherit
with:
push: true
registry: registry.scality.com
namespace: cloudserver-dev
name: cloudserver
context: .
file: images/svc-base/Dockerfile
tag: ${{ github.sha }}-svc-base
multiple-backend:
runs-on: ubuntu-latest
needs: build
env:
CLOUDSERVER_IMAGE: ghcr.io/${{ github.repository }}/cloudserver:${{ github.sha }}
CLOUDSERVER_IMAGE: registry.scality.com/cloudserver-dev/cloudserver:${{ github.sha }}-svc-base
S3BACKEND: mem
S3_LOCATION_FILE: /usr/src/app/tests/locationConfig/locationConfigTests.json
S3DATA: multiple
@ -184,7 +172,7 @@ jobs:
- name: Setup CI environment
uses: ./.github/actions/setup-ci
- name: Setup CI services
run: docker-compose up -d
run: sudo -E CONF_DIR=${{ env.GITHUB_WORKSPACE }}/ docker-compose up
working-directory: .github/docker
- name: Run multiple backend test
run: |-
@ -209,7 +197,7 @@ jobs:
env:
S3BACKEND: file
S3VAULT: mem
CLOUDSERVER_IMAGE: ghcr.io/${{ github.repository }}/cloudserver:${{ github.sha }}
CLOUDSERVER_IMAGE: registry.scality.com/cloudserver-dev/cloudserver:${{ github.sha }}-svc-base
MPU_TESTING: "yes"
JOB_NAME: ${{ github.job }}
steps:
@ -253,9 +241,9 @@ jobs:
needs: build
env:
ENABLE_UTAPI_V2: t
S3BACKEND: mem
S3BACKEND: mem
BUCKET_DENY_FILTER: utapi-event-filter-deny-bucket
CLOUDSERVER_IMAGE: ghcr.io/${{ github.repository }}/cloudserver:${{ github.sha }}
CLOUDSERVER_IMAGE: registry.scality.com/cloudserver-dev/cloudserver:${{ github.sha }}-svc-base
JOB_NAME: ${{ github.job }}
steps:
- name: Checkout
@ -290,7 +278,7 @@ jobs:
S3BACKEND: file
S3VAULT: mem
MPU_TESTING: true
CLOUDSERVER_IMAGE: ghcr.io/${{ github.repository }}/cloudserver:${{ github.sha }}
CLOUDSERVER_IMAGE: registry.scality.com/cloudserver-dev/cloudserver:${{ github.sha }}-svc-base
JOB_NAME: ${{ github.job }}
steps:
- name: Checkout