Skip to content

fix docker-compose command not found #1176

fix docker-compose command not found

fix docker-compose command not found #1176

Workflow file for this run

name: CI
on:
push:
branches:
- "master"
tags:
- "v*"
pull_request:
branches:
- "master"
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: test
run: |
cp CI/ESS/docker-compose.test.yaml docker-compose.yaml
docker compose down --remove-orphans
docker compose pull
docker compose up --build --exit-code-from scichat-loopback
docker compose down
builde2e:
name: Build E2E Docker image
runs-on: ubuntu-latest
needs: [test]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Copy E2E Docker file
run: |
cp CI/ESS/Dockerfile.e2e ./Dockerfile
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GHCR
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ghcr.io/scicatproject/scichat-loopback:e2e
buildprod:
name: Build Docker image
runs-on: ubuntu-latest
needs: [test]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/scicatproject/scichat-loopback
flavor: |
latest=false
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=raw,value=stable,enable=${{startsWith(github.ref, 'refs/tags/v')}}
type=ref,event=tag
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GHCR
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
gitlab:
name: Deploy
needs: [buildprod]
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- name: trigger Job
uses: appleboy/gitlab-ci-action@master
with:
token: ${{ secrets.GITLAB_TOKEN }}
project_id: 1981
ref: "master"
host: "https://gitlab.esss.lu.se"
debug: true