Skip to content

Commit

Permalink
Reenabling using latest init image in PR workflow (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-gerber committed May 19, 2023
1 parent 80c0b69 commit 006abdb
Showing 1 changed file with 2 additions and 29 deletions.
31 changes: 2 additions & 29 deletions .github/workflows/pr.yml
Expand Up @@ -53,34 +53,9 @@ jobs:
run: npm run test:unit -- --coverage
working-directory: init

- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: |
farosai/faros-ce-init
flavor: |
latest=auto
tags: |
type=sha,format=long,prefix=
type=raw,value=latest,enable=true
- name: Set up Docker QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Build Docker image
uses: docker/build-push-action@v2
with:
context: .
load: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

# In order to optimize for speed, we use the latest init image.
- name: Start services
run: FAROS_EMAIL=integration.tests@faros.ai FAROS_INIT_IMAGE=farosai/faros-ce-init:${{ github.sha }} docker compose up --quiet-pull -d
run: FAROS_EMAIL=integration.tests@faros.ai FAROS_INIT_IMAGE=farosai/faros-ce-init:latest docker compose up --quiet-pull -d

- name: Show logs
run: docker compose logs --tail all
Expand Down Expand Up @@ -110,5 +85,3 @@ jobs:

- name: Stop services
run: docker compose down


0 comments on commit 006abdb

Please sign in to comment.