fix: modify checks for events number #102
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: Build and push | |
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
build-docker-image: | |
runs-on: ubuntu-latest | |
env: | |
REGISTRY: docker.io | |
IMAGE_NAME: ehrbase/integration-tests | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Login into registry ${{ env.REGISTRY }} | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
# Docker metadata extraction - obtain version and labels from here | |
- name: Extract Docker metadata | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | |
# setup qemu for multi arch | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
# setup buildx | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build and push | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest | |
labels: ${{ steps.meta.outputs.labels }} |