You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/build_agent_container.yaml
+52-3Lines changed: 52 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,6 @@ on:
5
5
push:
6
6
branches:
7
7
- main
8
-
- docker_ci
9
8
paths:
10
9
- agent/**
11
10
- .github/workflows/build_agent_container.yaml
@@ -18,10 +17,11 @@ on:
18
17
env:
19
18
REGISTRY: ghcr.io
20
19
IMAGE_NAME: ${{ github.repository }}
20
+
DOCKER_CMD: docker
21
21
22
22
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
23
23
jobs:
24
-
build-and-push-image:
24
+
build-and-push-agent:
25
25
runs-on: ubuntu-latest
26
26
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
27
27
permissions:
@@ -33,7 +33,7 @@ jobs:
33
33
steps:
34
34
- name: Checkout repository
35
35
uses: actions/checkout@v4
36
-
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
36
+
# Uses the `docker/login-action` action to log in to the Container registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
37
37
- name: Log in to the Container registry
38
38
uses: docker/login-action@v3
39
39
with:
@@ -72,3 +72,52 @@ jobs:
72
72
subject-digest: ${{ steps.build.outputs.digest }}
73
73
push-to-registry: true
74
74
75
+
build-and-publish-agentless:
76
+
runs-on: ubuntu-latest
77
+
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
78
+
permissions:
79
+
contents: read
80
+
packages: write
81
+
attestations: write
82
+
id-token: write
83
+
steps:
84
+
- name: Checkout repository
85
+
uses: actions/checkout@v4
86
+
# Uses the `docker/login-action` action to log in to the Container registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
# This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see [AUTOTITLE](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds).
0 commit comments