name: Build and push Docker image to Container Registry on: push: branches: - main tags: - '*' jobs: build-and-push: name: Build and push Docker image to Container Registry runs-on: ubuntu-latest container: image: catthehacker/ubuntu:act-latest env: DOCKER_LATEST: latest RUNNER_TOOL_CACHE: /toolcache steps: - name: Checkout repository uses: actions/checkout@v3 - name: Set up QEMU uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 - name: Login to Container Registry uses: docker/login-action@v2 with: registry: git.depeuter.dev username: ${{ gitea.actor }} password: ${{ secrets.CI_TOKEN }} - name: Get Meta id: meta uses: docker/metadata-action@v5 with: images: git.depeuter.dev/${{ gitea.repository }} - name: Build and push id: docker_build uses: docker/build-push-action@v5 with: context: . file: ./frontend/Dockerfile push: true tags: ${{ steps.meta.output.tags }} label: ${{ steps.meta.output.labels }} - name: Image digest run: echo ${{ steps.docker_build.outputs.digest }}