Repository navigation
58 lines (54 loc) · 1.99 KB
/
Copy pathimage.yml
File metadata and controls
58 lines (54 loc) · 1.99 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
name: Image
on:
pull_request:
concurrency:
group: ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
image:
name: Container image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
- id: image
name: Derive fork-local image name
run: |
repository="$(printf '%s' "$GITHUB_REPOSITORY" | tr '[:upper:]' '[:lower:]')"
echo "name=ghcr.io/$repository" >>"$GITHUB_OUTPUT"
- id: metadata
uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6.2.0
with:
images: ${{ steps.image.outputs.name }}
tags: |
type=sha,format=long
- uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
with:
context: .
platforms: linux/amd64
push: false
provenance: mode=max
sbom: true
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Validate vertical harness scripts
run: |
sh -n integrations/vertical/run.sh
sh -n integrations/vertical/run-in-workload.sh
sh -n integrations/vertical/prepare-linux-bw.sh
- name: Build secretless gh workload fixture
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
with:
context: integrations/vertical
file: integrations/vertical/Dockerfile
platforms: linux/amd64
push: false
provenance: mode=max
sbom: true
tags: charon-vertical-workload:test
cache-from: type=gha,scope=vertical-workload
cache-to: type=gha,mode=max,scope=vertical-workload