Some checks failed
Build Docs / build-docs (push) Failing after 3m1s
Build and Test Code / test (push) Successful in 3m15s
Build and Test Code / static_analysis (push) Successful in 3m17s
Build and Test Code / coverage (push) Successful in 3m21s
Build and Test Code / sanitize (push) Successful in 3m24s
41 lines
989 B
YAML
41 lines
989 B
YAML
name: Build Image
|
|
run-name: ${{ gitea.ref }} Build
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "Dockerfile"
|
|
|
|
jobs:
|
|
build-dev-image:
|
|
runs-on: garm-k8s
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Docker
|
|
run: curl -fsSL https://get.docker.com | sh
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
- name: Log into Gitea
|
|
uses: docker/login-action@v1
|
|
with:
|
|
registry: gitea.shrukanslab.xyz
|
|
username: ${{ secrets.ROBOT_USERNAME }}
|
|
password: ${{ secrets.ROBOT_PASSWORD }}
|
|
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v4
|
|
with:
|
|
context: .
|
|
platforms: linux/amd64
|
|
push: true
|
|
tags: |
|
|
gitea.shrukanslab.xyz/shrukan/cpp-template/dev-environment:latest
|
|
|
|
- name: Logout from Docker Registry
|
|
run: docker logout gitea.shrukanslab.xyz
|