Skip to content

Merge branch 'phase-5-webapp' #3

Merge branch 'phase-5-webapp'

Merge branch 'phase-5-webapp' #3

name: Build and Push Docker Image

Check failure on line 1 in .github/workflows/docker-compose-ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/docker-compose-ci.yml

Invalid workflow file

(Line: 35, Col: 17): Unexpected symbol: ','. Located at position 24 within expression: github.repository_owner,,
on:
push:
branches: [ "main", "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push images
uses: docker/build-push-action@v6
with:
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/centralized-logging:latest
ghcr.io/${{ github.repository_owner,, }}/centralized-logging:latest