Compare commits
No commits in common. "686ca6360563ce4c2d2bf49c442881ebed807cf3" and "c29af16e46849e27e8d57bc6e259a7eddb8733cf" have entirely different histories.
686ca63605
...
c29af16e46
|
@ -1,7 +1,8 @@
|
||||||
FROM ghcr.io/scality/vault:c2607856
|
FROM registry.scality.com/vault-dev/vault:c2607856
|
||||||
|
|
||||||
ENV VAULT_DB_BACKEND LEVELDB
|
ENV VAULT_DB_BACKEND LEVELDB
|
||||||
|
|
||||||
RUN chmod 400 tests/utils/keyfile
|
RUN chmod 400 tests/utils/keyfile
|
||||||
|
|
||||||
ENTRYPOINT yarn start
|
ENTRYPOINT yarn start
|
||||||
|
|
||||||
|
|
|
@ -2,13 +2,18 @@ name: build-ci-images
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
secrets:
|
||||||
|
REGISTRY_LOGIN:
|
||||||
|
required: true
|
||||||
|
REGISTRY_PASSWORD:
|
||||||
|
required: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
warp10-ci:
|
warp10-ci:
|
||||||
uses: scality/workflows/.github/workflows/docker-build.yaml@v2
|
uses: scality/workflows/.github/workflows/docker-build.yaml@v1
|
||||||
secrets:
|
secrets:
|
||||||
REGISTRY_LOGIN: ${{ github.repository_owner }}
|
REGISTRY_LOGIN: ${{ github.repository_owner }}
|
||||||
REGISTRY_PASSWORD: ${{ github.token }}
|
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
name: warp10-ci
|
name: warp10-ci
|
||||||
context: .
|
context: .
|
||||||
|
@ -16,22 +21,22 @@ jobs:
|
||||||
lfs: true
|
lfs: true
|
||||||
|
|
||||||
redis-ci:
|
redis-ci:
|
||||||
uses: scality/workflows/.github/workflows/docker-build.yaml@v2
|
uses: scality/workflows/.github/workflows/docker-build.yaml@v1
|
||||||
secrets:
|
secrets:
|
||||||
REGISTRY_LOGIN: ${{ github.repository_owner }}
|
REGISTRY_LOGIN: ${{ github.repository_owner }}
|
||||||
REGISTRY_PASSWORD: ${{ github.token }}
|
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
name: redis-ci
|
name: redis-ci
|
||||||
context: .
|
context: .
|
||||||
file: images/redis/Dockerfile
|
file: images/redis/Dockerfile
|
||||||
|
|
||||||
redis-replica-ci:
|
redis-replica-ci:
|
||||||
uses: scality/workflows/.github/workflows/docker-build.yaml@v2
|
uses: scality/workflows/.github/workflows/docker-build.yaml@v1
|
||||||
needs:
|
needs:
|
||||||
- redis-ci
|
- redis-ci
|
||||||
secrets:
|
secrets:
|
||||||
REGISTRY_LOGIN: ${{ github.repository_owner }}
|
REGISTRY_LOGIN: ${{ github.repository_owner }}
|
||||||
REGISTRY_PASSWORD: ${{ github.token }}
|
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
name: redis-replica-ci
|
name: redis-replica-ci
|
||||||
context: .github/docker/redis-replica
|
context: .github/docker/redis-replica
|
||||||
|
@ -42,21 +47,28 @@ jobs:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v2.3.4
|
||||||
with:
|
with:
|
||||||
lfs: true
|
lfs: true
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v1.6.0
|
||||||
- name: Login to GitHub Registry
|
- name: Login to GitHub Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v1.10.0
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ github.token }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Login to Scality Registry
|
||||||
|
uses: docker/login-action@v1.10.0
|
||||||
|
with:
|
||||||
|
registry: registry.scality.com
|
||||||
|
username: ${{ secrets.REGISTRY_LOGIN }}
|
||||||
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
|
|
||||||
- name: Build and push vault Image
|
- name: Build and push vault Image
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v2.7.0
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
context: .github/docker/vault
|
context: .github/docker/vault
|
||||||
|
|
|
@ -7,10 +7,9 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-dev:
|
build-dev:
|
||||||
uses: scality/workflows/.github/workflows/docker-build.yaml@v2
|
uses: scality/workflows/.github/workflows/docker-build.yaml@v1
|
||||||
secrets:
|
secrets: inherit
|
||||||
REGISTRY_LOGIN: ${{ github.repository_owner }}
|
|
||||||
REGISTRY_PASSWORD: ${{ github.token }}
|
|
||||||
with:
|
with:
|
||||||
namespace: ${{ github.repository_owner }}
|
registry: registry.scality.com
|
||||||
name: ${{ github.event.repository.name }}
|
namespace: utapi-dev
|
||||||
|
name: utapi
|
||||||
|
|
|
@ -15,9 +15,11 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
uses: scality/workflows/.github/workflows/docker-build.yaml@v2
|
uses: scality/workflows/.github/workflows/docker-build.yaml@v1
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
|
registry: registry.scality.com
|
||||||
|
namespace: utapi
|
||||||
name: warp10
|
name: warp10
|
||||||
context: .
|
context: .
|
||||||
file: images/warp10/Dockerfile
|
file: images/warp10/Dockerfile
|
||||||
|
@ -29,11 +31,11 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
- uses: softprops/action-gh-release@v2
|
- uses: softprops/action-gh-release@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
name: Release utapi/warp10:${{ github.event.inputs.tag }}-warp10
|
name: Release registry.scality.com/utapi/warp10:${{ github.event.inputs.tag }}-warp10
|
||||||
tag_name: ${{ github.event.inputs.tag }}-warp10
|
tag_name: ${{ github.event.inputs.tag }}-warp10
|
||||||
generate_release_notes: false
|
generate_release_notes: false
|
||||||
target_commitish: ${{ github.sha }}
|
target_commitish: ${{ github.sha }}
|
||||||
|
|
|
@ -22,11 +22,12 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
uses: scality/workflows/.github/workflows/docker-build.yaml@v2
|
uses: scality/workflows/.github/workflows/docker-build.yaml@v1
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
namespace: ${{ github.repository_owner }}
|
registry: registry.scality.com
|
||||||
name: ${{ github.event.repository.name }}
|
namespace: utapi
|
||||||
|
name: utapi
|
||||||
context: .
|
context: .
|
||||||
file: ${{ github.event.inputs.dockerfile}}
|
file: ${{ github.event.inputs.dockerfile}}
|
||||||
tag: ${{ github.event.inputs.tag }}
|
tag: ${{ github.event.inputs.tag }}
|
||||||
|
@ -36,9 +37,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
- uses: softprops/action-gh-release@v2
|
- uses: softprops/action-gh-release@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
name: Release ${{ github.event.inputs.tag }}
|
name: Release ${{ github.event.inputs.tag }}
|
||||||
tag_name: ${{ github.event.inputs.tag }}
|
tag_name: ${{ github.event.inputs.tag }}
|
||||||
|
|
|
@ -9,15 +9,18 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build-ci:
|
build-ci:
|
||||||
uses: ./.github/workflows/build-ci.yaml
|
uses: ./.github/workflows/build-ci.yaml
|
||||||
|
secrets:
|
||||||
|
REGISTRY_LOGIN: ${{ secrets.REGISTRY_LOGIN }}
|
||||||
|
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
lfs: true
|
lfs: true
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '16.13.2'
|
node-version: '16.13.2'
|
||||||
cache: yarn
|
cache: yarn
|
||||||
|
@ -107,19 +110,24 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
lfs: true
|
lfs: true
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '16.13.2'
|
node-version: '16.13.2'
|
||||||
cache: yarn
|
cache: yarn
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.9'
|
||||||
cache: pip
|
- uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ~/.cache/pip
|
||||||
|
key: ${{ runner.os }}-pip
|
||||||
- name: Install python deps
|
- name: Install python deps
|
||||||
run: pip install -r requirements.txt
|
run: |
|
||||||
|
pip install requests
|
||||||
|
pip install redis
|
||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
run: yarn install --frozen-lockfile --network-concurrency 1
|
run: yarn install --frozen-lockfile --network-concurrency 1
|
||||||
- name: ${{ matrix.test.name }}
|
- name: ${{ matrix.test.name }}
|
||||||
|
@ -196,19 +204,24 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
lfs: true
|
lfs: true
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '16.13.2'
|
node-version: '16.13.2'
|
||||||
cache: yarn
|
cache: yarn
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.9'
|
||||||
cache: pip
|
- uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ~/.cache/pip
|
||||||
|
key: ${{ runner.os }}-pip
|
||||||
- name: Install python deps
|
- name: Install python deps
|
||||||
run: pip install -r requirements.txt
|
run: |
|
||||||
|
pip install requests
|
||||||
|
pip install redis
|
||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
run: yarn install --frozen-lockfile --network-concurrency 1
|
run: yarn install --frozen-lockfile --network-concurrency 1
|
||||||
- name: Wait for warp10 for 60 seconds
|
- name: Wait for warp10 for 60 seconds
|
||||||
|
@ -220,16 +233,9 @@ jobs:
|
||||||
UTAPI_SERVICE_USER_ENABLED: 'true'
|
UTAPI_SERVICE_USER_ENABLED: 'true'
|
||||||
UTAPI_LOG_LEVEL: trace
|
UTAPI_LOG_LEVEL: trace
|
||||||
SETUP_CMD: "run start_v2:server"
|
SETUP_CMD: "run start_v2:server"
|
||||||
- name: 'Debug: SSH to runner'
|
- name: Setup tmate session
|
||||||
uses: scality/actions/action-ssh-to-runner@1.7.0
|
uses: mxschmitt/action-tmate@v3
|
||||||
timeout-minutes: ${{ fromJSON(github.event.inputs.connection-timeout-m) }}
|
if: failure()
|
||||||
continue-on-error: true
|
|
||||||
with:
|
|
||||||
tmate-server-host: ${{ secrets.TMATE_SERVER_HOST }}
|
|
||||||
tmate-server-port: ${{ secrets.TMATE_SERVER_PORT }}
|
|
||||||
tmate-server-rsa-fingerprint: ${{ secrets.TMATE_SERVER_RSA_FINGERPRINT }}
|
|
||||||
tmate-server-ed25519-fingerprint: ${{ secrets.TMATE_SERVER_ED25519_FINGERPRINT }}
|
|
||||||
if: ${{ ( github.event.inputs.debug == true || github.event.inputs.debug == 'true' ) }}
|
|
||||||
|
|
||||||
tests-v2-without-sensision:
|
tests-v2-without-sensision:
|
||||||
needs:
|
needs:
|
||||||
|
@ -317,19 +323,24 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
lfs: true
|
lfs: true
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '16.13.2'
|
node-version: '16.13.2'
|
||||||
cache: yarn
|
cache: yarn
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.9'
|
||||||
cache: pip
|
- uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ~/.cache/pip
|
||||||
|
key: ${{ runner.os }}-pip
|
||||||
- name: Install python deps
|
- name: Install python deps
|
||||||
run: pip install -r requirements.txt
|
run: |
|
||||||
|
pip install requests
|
||||||
|
pip install redis
|
||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
run: yarn install --frozen-lockfile --network-concurrency 1
|
run: yarn install --frozen-lockfile --network-concurrency 1
|
||||||
- name: Wait for warp10 a little bit
|
- name: Wait for warp10 a little bit
|
||||||
|
@ -337,13 +348,6 @@ jobs:
|
||||||
- name: ${{ matrix.test.name }}
|
- name: ${{ matrix.test.name }}
|
||||||
run: ${{ matrix.test.command }}
|
run: ${{ matrix.test.command }}
|
||||||
env: ${{ matrix.test.env }}
|
env: ${{ matrix.test.env }}
|
||||||
- name: 'Debug: SSH to runner'
|
- name: Setup tmate session
|
||||||
uses: scality/actions/action-ssh-to-runner@1.7.0
|
uses: mxschmitt/action-tmate@v3
|
||||||
timeout-minutes: ${{ fromJSON(github.event.inputs.connection-timeout-m) }}
|
if: failure()
|
||||||
continue-on-error: true
|
|
||||||
with:
|
|
||||||
tmate-server-host: ${{ secrets.TMATE_SERVER_HOST }}
|
|
||||||
tmate-server-port: ${{ secrets.TMATE_SERVER_PORT }}
|
|
||||||
tmate-server-rsa-fingerprint: ${{ secrets.TMATE_SERVER_RSA_FINGERPRINT }}
|
|
||||||
tmate-server-ed25519-fingerprint: ${{ secrets.TMATE_SERVER_ED25519_FINGERPRINT }}
|
|
||||||
if: ${{ ( github.event.inputs.debug == true || github.event.inputs.debug == 'true' ) }}
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM ghcr.io/scality/federation/nodesvc-base:7.10.5.0
|
FROM registry.scality.com/federation/nodesvc-base:7.10.5.0
|
||||||
|
|
||||||
ENV UTAPI_CONFIG_FILE=${CONF_DIR}/config.json
|
ENV UTAPI_CONFIG_FILE=${CONF_DIR}/config.json
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ RUN apk add zip unzip build-base \
|
||||||
&& cd .. \
|
&& cd .. \
|
||||||
&& go build -a -o /usr/local/go/warp10_sensision_exporter
|
&& go build -a -o /usr/local/go/warp10_sensision_exporter
|
||||||
|
|
||||||
FROM ghcr.io/scality/utapi/warp10:2.8.1-95-g73e7de80
|
FROM registry.scality.com/utapi/warp10:2.8.1-95-g73e7de80
|
||||||
|
|
||||||
# Override baked in version
|
# Override baked in version
|
||||||
# Remove when updating to a numbered release
|
# Remove when updating to a numbered release
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
redis==5.0.3
|
|
||||||
requests==2.31.0
|
|
Loading…
Reference in New Issue