-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Ubuntu 14.04 and 'OSConfig for MC' policy packages build workf…
…low (#775)
- Loading branch information
Showing
9 changed files
with
142 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Publish (GitHub) | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
ref: | ||
description: 'Git ref to publish' | ||
required: true | ||
default: main | ||
type: string | ||
push: | ||
# tags: | ||
# - v*.*.* | ||
|
||
jobs: | ||
publish: | ||
name: Publish | ||
uses: ./.github/workflows/publish-github.yml | ||
strategy: | ||
matrix: | ||
target: | ||
[ | ||
{ os: ubuntu, version: 14.04, arch: amd64, dist: trusty, package-type: DEB }, | ||
] | ||
with: | ||
release-name: Test Azure Policy Packages | ||
target: ${{ matrix.target.os }}-${{ matrix.target.version }} | ||
arch: ${{ matrix.target.arch }} | ||
dist: ${{ matrix.target.dist }} | ||
environment: prod | ||
package-type: ${{ matrix.target.package-type }} | ||
buildForMachineConfiguration: true | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.github/workflows/package-publish.yml → .github/workflows/package-publish-pmc.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Publish Package | ||
name: Publish Package PMC | ||
|
||
on: | ||
workflow_call: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Publish | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
target: | ||
type: string | ||
required: true | ||
arch: | ||
type: string | ||
required: true | ||
dist: | ||
type: string | ||
required: true | ||
package-type: | ||
type: string | ||
required: true | ||
environment: | ||
type: string | ||
description: The GitHub environment to use for the build. | ||
required: true | ||
release-name: | ||
type: string | ||
description: The GitHub release name to update. | ||
required: true | ||
container-tag: | ||
type: string | ||
required: false | ||
default: latest | ||
buildForMachineConfiguration: | ||
type: boolean | ||
required: false | ||
default: false | ||
|
||
jobs: | ||
package: | ||
uses: ./.github/workflows/package-build.yml | ||
with: | ||
target: ${{ inputs.target }} | ||
arch: ${{ inputs.arch }} | ||
artifact: ${{ inputs.target }}-${{ inputs.arch }} | ||
package-type: ${{ inputs.package-type }} | ||
container-tag: ${{ inputs.container-tag }} | ||
buildForMachineConfiguration: ${{ inputs.buildForMachineConfiguration }} | ||
release: true | ||
|
||
sign: | ||
uses: ./.github/workflows/package-sign.yml | ||
needs: package | ||
with: | ||
artifact: ${{ inputs.target }}-${{ inputs.arch }} | ||
key-code: ${{ inputs.dist == 'azurelinux' && 'CP-459159-Pgp' || 'CP-450779-Pgp' }} | ||
package-type: ${{ inputs.package-type }} | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
FROM ubuntu:trusty | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt -y update && apt-get -y install software-properties-common | ||
RUN apt -y update && apt-get -y install \ | ||
apt-transport-https \ | ||
git \ | ||
cmake \ | ||
build-essential \ | ||
curl \ | ||
libcurl4-openssl-dev \ | ||
libssl-dev \ | ||
uuid-dev \ | ||
ninja-build \ | ||
python3-jsonschema \ | ||
wget \ | ||
gcovr\ | ||
jq \ | ||
bc \ | ||
file | ||
|
||
WORKDIR /git | ||
|
||
# CMake | ||
RUN git clone https://github.com/Kitware/CMake --recursive -b v3.21.7 | ||
RUN cd CMake && ./bootstrap && make -j$(nproc) && make install && hash -r && rm -rf /git/CMake | ||
|
||
# GTest | ||
RUN git clone https://github.com/google/googletest --recursive -b release-1.10.0 | ||
RUN cd googletest && cmake . -G Ninja && cmake --build . --target install | ||
|
||
# rapidjson | ||
RUN git clone https://github.com/Tencent/rapidjson --recursive -b v1.1.0 | ||
RUN cd rapidjson && cmake . && cmake --build . --parallel --target install && rm -rf /git/rapidjson |