-
Notifications
You must be signed in to change notification settings - Fork 153
60 lines (56 loc) · 1.8 KB
/
development.yml
File metadata and controls
60 lines (56 loc) · 1.8 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
52
53
54
55
56
57
58
59
60
name: Development
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
tests:
strategy:
matrix:
python: ["3.10"]
uses: ./.github/workflows/testing.yml
with:
python: ${{ matrix.python }}
quality:
strategy:
matrix:
python: ["3.10"]
uses: ./.github/workflows/quality.yml
with:
python: ${{ matrix.python }}
build-and-push-container:
# Only build if the PR branch is local
if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Store/retrieve build caches
id: cache-buildah
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: /var/tmp/buildah-cache-*
key: buildah-mount-cache-${{ runner.os }}-${{ runner.arch }}
- name: Buildah build
id: build-image
uses: redhat-actions/buildah-build@7a95fa7ee0f02d552a32753e7414641a04307056 # v2.13
with:
image: ${{ github.event.repository.name }}
build-args: |
GUIDELLM_BUILD_TYPE=dev
tags: "pr-${{ github.event.number }}"
layers: true
containerfiles: |
./Containerfile
- name: Push To ghcr.io
id: push-to-ghcr
uses: redhat-actions/push-to-registry@5ed88d269cf581ea9ef6dd6806d01562096bee9c # v2.8
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
username: ${{ github.actor }}
password: ${{ github.token }}
registry: ghcr.io/${{ github.repository_owner }}