Skip to content

Merge pull request #67 from trenz-gmbh/issues/59-remove-fixed-home-view #32

Merge pull request #67 from trenz-gmbh/issues/59-remove-fixed-home-view

Merge pull request #67 from trenz-gmbh/issues/59-remove-fixed-home-view #32

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
name: Build Docker Image
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
if: github.event_name != 'pull_request'
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Test docker-compose.yml
run: chmod +x ./.github/scripts/docker-image-test.sh && ./.github/scripts/docker-image-test.sh
shell: bash
- name: Build and push image
uses: docker/build-push-action@v3
if: github.event_name != 'pull_request'
with:
context: .
platforms: linux/amd64
push: true
tags: |
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ github.sha }}