-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (48 loc) · 1.39 KB
/
ci.yml
File metadata and controls
51 lines (48 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
prek:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install uv and set the Python version
uses: astral-sh/setup-uv@v7
with:
python-version: "3.14"
- run: SKIP=no-commit-to-branch uvx prek run --all-files --show-diff-on-failure
docker:
runs-on: ubuntu-latest
strategy:
matrix:
ubuntu_version:
- "24.04"
steps:
- name: Login to Docker Hub
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
scope: makeappdev/cpp-dev@push
- name: Set up QEMU
uses: docker/setup-qemu-action@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Validate build configuration
uses: docker/build-push-action@v7
with:
call: check
build-args: |
UBUNTU_VERSION=${{ matrix.ubuntu_version }}
- name: Build and push
uses: docker/build-push-action@v7
with:
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
build-args: |
UBUNTU_VERSION=${{ matrix.ubuntu_version }}
tags: makeappdev/cpp-dev:${{ matrix.ubuntu_version }}