-
Notifications
You must be signed in to change notification settings - Fork 8
41 lines (37 loc) · 1 KB
/
auto_release.yml
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
name: create_release_from_tag
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: ubuntu-latest
permissions:
pull-requests: write
packages: write
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up buildx
uses: docker/setup-buildx-action@v3
- name: Build the Docker image
uses: docker/build-push-action@v6
with:
file: ../../Dockerfile
platforms: linux/amd64
build-args: |
AGENT_VERSION=7.57.2
RELEASE_VERSION=${{ github.ref_name }}
tags: datadog-aas
load: true
- name: Extract zip file
run: docker cp $(docker create datadog-aas):/datadog-aas-${{ github.ref_name }}.zip .
- name: Release
uses: softprops/action-gh-release@v2
with:
prerelease: true
name: ${{ github.ref_name }}
files: |
datadog-aas-${{ github.ref_name }}.zip
datadog_wrapper