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 - /tmp/ssl-kmip:/ssl-kmip
- ${HOME}/.aws/credentials:/root/.aws/credentials - ${HOME}/.aws/credentials:/root/.aws/credentials
- /tmp/artifacts/${JOB_NAME}:/artifacts - /tmp/artifacts/${JOB_NAME}:/artifacts
- /tmp/artifacts/${JOB_NAME}:/logs
- ${CONF_DIR}:/conf
environment: environment:
- CI=true - CI=true
- ENABLE_LOCAL_CACHE=true - ENABLE_LOCAL_CACHE=true

View File

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