forked from openenclave/openenclave
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 1.37 KB
/
build-ci-resources.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
# Copyright (c) Open Enclave SDK contributors.
# Licensed under the MIT License.
name: Build Open Enclave CI Resources
on:
push:
branches: [ master ]
paths:
- ".jenkins/infrastructure/**"
- "scripts/install-windows-prereqs.ps1"
- "scripts/ansible/**"
jobs:
build-resources:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- name: Build Containers
job: OpenEnclave-Build-Docker-Images
- name: Build Images
job: OpenEnclave-Build-Azure-Managed-Images
env:
JENKINS_SERVER_URL: https://oe-jenkins-tf.westeurope.cloudapp.azure.com
JENKINS_JOB: ${{ matrix.job }}
JENKINS_JOB_NAME: ${{ matrix.name }}
steps:
- name: Checkout Open Enclave SDK
uses: actions/checkout@v3
- name: Pull Branch Info
id: branch-details
run: |
echo ::set-output name=name::`echo ${{ github.ref }} | rev | cut -d'/' -f 1 | rev`
echo ::set-output name=sha::`echo ${{ github.sha }} | cut -c1-8`
- name: ${{ env.JENKINS_JOB_NAME }}
run: curl "${{ env.JENKINS_SERVER_URL }}/job/CI-CD_Infrastructure/job/${{ env.JENKINS_JOB }}/buildWithParameters?token=${{ secrets.JENKINS_TOKEN }}&DOCKER_HUB_PUBLISH=true&TAG_LATEST=true&DOCKER_TAG=${{ steps.branch-details.outputs.name }}-${{ steps.branch-details.outputs.sha }}&cause=Master+branch+update"