Skip to content

bugfix: S3UTILS-154-update-readme-image-registry #775

bugfix: S3UTILS-154-update-readme-image-registry

bugfix: S3UTILS-154-update-readme-image-registry #775

Workflow file for this run

name: tests
on:
push:
branches-ignore:
- development/**
- q/*/**
concurrency:
group: 'tests-${{ github.ref }}'
cancel-in-progress: true
jobs:
tests:
runs-on: ubuntu-latest
services:
mongodb:
image: scality/ci-mongo:3.6.8
ports:
- '27018:27018'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install node
uses: actions/setup-node@v2
with:
node-version: '10'
cache: 'yarn'
- run: sudo apt-get update -q
- run: yarn --network-concurrency 1
- run: yarn --silent lint -- --max-warnings 0
- run: yarn --silent test:unit
- run: yarn --silent test:functional
env:
MONGODB_REPLICASET: "localhost:27018"
build:
runs-on: ubuntu-latest
needs:
- tests
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Registry
uses: docker/login-action@v1
with:
registry: registry.scality.com
username: ${{ secrets.REGISTRY_LOGIN }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: "registry.scality.com/s3utils-dev/s3utils:${{ github.sha }}"
cache-from: type=gha
cache-to: type=gha,mode=max