Skip to content

Commit 95860b4

Browse files
author
metworkbot
committed
build: sync common files from github_organization_management repository
1 parent ac05d8c commit 95860b4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ mkdir -p "/opt/metwork-mfsysmon-${TARGET_DIR}"
2929
mkdir -p buildlogs
3030
export BUILDLOGS=buildlogs
3131

32+
set +x
33+
export TOKEN=${TOKEN}
34+
set -x
35+
3236
make >${BUILDLOGS}/make.log 2>&1 || ( tail -200 ${BUILDLOGS}/make.log ; exit 1 )
3337

3438
OUTPUT=$(git status --short | grep -v buildlogs | grep -v buildcache)

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,9 @@ jobs:
9898
TAG=${{ steps.SetVariables.outputs.tag }}
9999
DEP_BRANCH=${{ steps.SetVariables.outputs.dep_branch }}
100100
BUILDIMAGE=${{ steps.SetVariables.outputs.buildimage }}
101+
TOKEN=${{ secrets.METWORK_ACCESS_TOKEN }}
101102
docker pull ${BUILDIMAGE}
102-
docker run ${DOCKER_RUN_OPTIONS} -e TARGET_DIR=${TARGET_DIR} -e BRANCH=${BRANCH} -e DEP_BRANCH=${DEP_BRANCH} -e TAG=${TAG} -e OS_VERSION=${OS_VERSION} --rm ${BUILDIMAGE} /bin/bash -c "${DOCKER_WORKFLOW_SCRIPTS_DIR}/build.sh"
103+
docker run ${DOCKER_RUN_OPTIONS} -e TOKEN=${TOKEN} -e TARGET_DIR=${TARGET_DIR} -e BRANCH=${BRANCH} -e DEP_BRANCH=${DEP_BRANCH} -e TAG=${TAG} -e OS_VERSION=${OS_VERSION} --rm ${BUILDIMAGE} /bin/bash -c "${DOCKER_WORKFLOW_SCRIPTS_DIR}/build.sh"
103104
cat ${{ github.workspace }}/github_output >> ${GITHUB_OUTPUT}
104105
105106
- name: publish buildlogs

0 commit comments

Comments
 (0)