Repository navigation
Add optional Nextcloud Talk High Performance Backend integration #65
This file contains hidden or 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 docker image | |
| on: | |
| push: | |
| branches: ["main"] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| packages: write | |
| jobs: | |
| docker: | |
| runs-on: ubuntu-latest | |
| concurrency: | |
| group: ${{ github.ref }}-docker | |
| cancel-in-progress: true | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v2 | |
| with: | |
| driver: docker | |
| - name: Login to Container Registry | |
| uses: docker/login-action@v2 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Extract metadata (tags, labels) for Docker | |
| id: meta | |
| uses: docker/metadata-action@v4 | |
| with: | |
| images: ghcr.io/${{ github.repository }} | |
| - name: Build docker container | |
| uses: docker/build-push-action@v4 | |
| with: | |
| context: ./nextcloud-nginx/ | |
| file: ./nextcloud-nginx/Dockerfile | |
| push: ${{ github.event_name != 'pull_request' }} | |
| tags: ghcr.io/netzint/nextcloud-nginx:latest | |
| labels: ${{ steps.meta.outputs.labels }} |