chore: CI/CD
Some checks failed
Build and push Docker image to Container Registry / Build and push Docker image to Container Registry (push) Failing after 12s

This commit is contained in:
Tibo De Peuter 2025-02-02 20:37:11 +01:00
parent 15091444be
commit ace8200df0
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2

View file

@ -0,0 +1,54 @@
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 }}