Refactor workflows (#25) #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: integrand-app-ci-cd | |
on: | |
push: | |
branches: | |
- 'master' | |
workflow_dispatch: | |
branches: | |
- 'master' | |
jobs: | |
python_integration_tests: | |
name: Integrand - Python Integration Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Docker Compose Build and Run | |
run: docker-compose -f docker-compose-python-integration.yml up --build --exit-code-from test-runner | |
build-and-push: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout main | |
uses: actions/checkout@v4 | |
- | |
name: Get Tag | |
run: | | |
tag=$(git rev-parse --short HEAD) | |
echo tag | |
echo "TAG=${tag}" >> $GITHUB_ENV | |
- | |
name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- | |
name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- | |
name: Login to Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: registry.vineglue.com | |
username: ${{ secrets.REGISTRY_USERNAME }} | |
password: ${{ secrets.REGISTRY_PASSWORD }} | |
- | |
name: Build and push | |
id: docker_build | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
file: ./images/Integrand.Dockerfile | |
push: true | |
tags: registry.vineglue.com/integrand-app:${{ env.TAG }} |