Skip to content

Commit

Permalink
ci:launch IT on main workflow too
Browse files Browse the repository at this point in the history
Signed-off-by: Sylvain Carisey <[email protected]>
  • Loading branch information
scarisey committed Aug 24, 2023
1 parent 971b73d commit b1c33be
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ env:
# github.repository as <account>/<repo>
# IMAGE_NAME: ${{ github.repository }}
IMAGE_NAME: ${{ secrets.DOCKERHUB_USERNAME }}/kapoeira
TEST_TAG: local/kapoeira:test

jobs:
build:
Expand Down Expand Up @@ -66,6 +67,27 @@ jobs:
type=semver,pattern={{ version }}
type=ref,event=branch,suffix=-{{ sha }}
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and export Docker image
id: build-and-test
uses: docker/build-push-action@v4
with:
context: .
load: true
tags: ${{ env.TEST_TAG }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Launch the stack
run: |
docker compose up -d
- name: Test
run: |
docker compose run --rm --name kapoeira-it kapoeira
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
Expand Down

0 comments on commit b1c33be

Please sign in to comment.