name: CI on: push: branches: [ main ] tags: [ 'v*' ] pull_request: branches: [ main ] env: REGISTRY: ghcr.io VERSION: v0.0.1 jobs: build: runs-on: ubuntu-latest permissions: contents: read packages: write steps: - uses: actions/checkout@v4 - name: Log in to the Container registry uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push API image uses: docker/build-push-action@v5 with: context: . file: build/Dockerfile.mom push: true tags: | ${{ env.REGISTRY }}/${{ github.repository }}-api:${{ env.VERSION }} ${{ env.REGISTRY }}/${{ github.repository }}-api:latest - name: Build and push Operator image uses: docker/build-push-action@v5 with: context: . file: build/Dockerfile.operator push: true tags: | ${{ env.REGISTRY }}/${{ github.repository }}-operator:${{ env.VERSION }} ${{ env.REGISTRY }}/${{ github.repository }}-operator:latest - name: Build and push Portal image uses: docker/build-push-action@v5 with: context: . file: build/Dockerfile.portal push: true tags: | ${{ env.REGISTRY }}/${{ github.repository }}-portal:${{ env.VERSION }} ${{ env.REGISTRY }}/${{ github.repository }}-portal:latest