Skip to content

Commit de3ffb9

Browse files
authored
Merge branch 'master' into log_cfg
2 parents bafa864 + 7643c83 commit de3ffb9

File tree

6 files changed

+105
-2
lines changed

6 files changed

+105
-2
lines changed

.github/workflows/docker_example.yml

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
name: Docker
2+
3+
# This workflow uses actions that are not certified by GitHub.
4+
# They are provided by a third-party and are governed by
5+
# separate terms of service, privacy policy, and support
6+
# documentation.
7+
8+
on:
9+
push:
10+
branches:
11+
- master
12+
# Publish semver tags as releases.
13+
tags: [ 'v*.*.*' ]
14+
pull_request:
15+
branches: [ "master" ]
16+
17+
env:
18+
# Use docker.io for Docker Hub if empty
19+
REGISTRY: docker.io
20+
# github.repository as <account>/<repo>
21+
IMAGE_NAME: intergral/deep-python
22+
23+
24+
jobs:
25+
build:
26+
27+
runs-on: ubuntu-latest
28+
permissions:
29+
contents: read
30+
packages: write
31+
# This is used to complete the identity challenge
32+
# with sigstore/fulcio when running outside of PRs.
33+
id-token: write
34+
35+
steps:
36+
- name: Checkout repository
37+
uses: actions/checkout@v3
38+
39+
# Install the cosign tool except on PR
40+
# https://github.com/sigstore/cosign-installer
41+
- name: Install cosign
42+
if: github.event_name != 'pull_request'
43+
uses: sigstore/[email protected]
44+
with:
45+
cosign-release: 'v2.2.3'
46+
47+
# Set up BuildKit Docker container builder to be able to build
48+
# multi-platform images and export cache
49+
# https://github.com/docker/setup-buildx-action
50+
- name: Set up Docker Buildx
51+
uses: docker/[email protected]
52+
53+
# Login against a Docker registry except on PR
54+
# https://github.com/docker/login-action
55+
- name: Log into registry ${{ env.REGISTRY }}
56+
if: github.event_name != 'pull_request'
57+
uses: docker/[email protected]
58+
with:
59+
registry: ${{ env.REGISTRY }}
60+
username: ${{ secrets.DOCKERHUB_USERNAME }}
61+
password: ${{ secrets.DOCKERHUB_TOKEN }}
62+
63+
# Extract metadata (tags, labels) for Docker
64+
# https://github.com/docker/metadata-action
65+
- name: Extract Docker metadata
66+
id: meta
67+
uses: docker/[email protected]
68+
with:
69+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
70+
71+
# Build and push Docker image with Buildx (don't push on PR)
72+
# https://github.com/docker/build-push-action
73+
- name: Build and push Docker image
74+
id: build-and-push
75+
uses: docker/[email protected]
76+
with:
77+
context: ./examples/simple-app-docker
78+
push: ${{ github.event_name != 'pull_request' }}
79+
tags: ${{ steps.meta.outputs.tags }}
80+
labels: ${{ steps.meta.outputs.labels }}
81+
cache-from: type=gha
82+
cache-to: type=gha,mode=max
83+
84+
# Sign the resulting Docker image digest except on PRs.
85+
# This will only write to the public Rekor transparency log when the Docker
86+
# repository is public to avoid leaking data. If you would like to publish
87+
# transparency data even for private images, pass --force to cosign below.
88+
# https://github.com/sigstore/cosign
89+
- name: Sign the published Docker image
90+
if: ${{ github.event_name != 'pull_request' }}
91+
env:
92+
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
93+
TAGS: ${{ steps.meta.outputs.tags }}
94+
DIGEST: ${{ steps.build-and-push.outputs.digest }}
95+
# This step uses the identity token to provision an ephemeral certificate
96+
# against the sigstore community Fulcio instance.
97+
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
File renamed without changes.
File renamed without changes.

.github/workflows/on_release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,11 @@ jobs:
2626
pip install -r requirements.txt
2727
pip install -r dev-requirements.txt
2828
29+
- name: Write release version
30+
run: |
31+
VERSION=${VERSION#v}
32+
echo Version: $VERSION
33+
echo "VERSION=$VERSION" >> $GITHUB_ENV
34+
2935
- name: Release Agent
3036
run: make rel-agent

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@
3434
- **[FEATURE]**: description [#PRid](https://github.com/intergral/deep/pull/PRid) [@user](https://github.com/user)
3535
- **[ENHANCEMENT]**: description [#PRid](https://github.com/intergral/deep/pull/PRid) [@user](https://github.com/user)
3636
- **[BUGFIX]**: description [#PRid](https://github.com/intergral/deep/pull/PRid) [@user](https://github.com/user)
37-
Template END -->
37+
Template END -->
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
deep-agent==1.1.0
1+
deep-agent==1.1.1

0 commit comments

Comments
 (0)