Skip to content

2025 04 15 tidy #1674

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
220 changes: 110 additions & 110 deletions .github/workflows/build-using-buildscripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ jobs:
uses: actions/checkout@v3
with:
repository: cfengine/together-javascript-action
ref: main
ref: 2025-04-15-tidy
ssh-key: ${{ secrets.GH_ACTIONS_SSH_DEPLOY_KEY_TOGETHER_REPO }}
ssh-known-hosts: github.com

- name: Action step
uses: ./
id: together
with:
myToken: ${{ secrets.GITHUB_TOKEN }}
myToken: "craigs-token"

- name: Checkout Core
uses: actions/checkout@v3
Expand All @@ -45,111 +45,111 @@ jobs:
path: core
ref: ${{steps.together.outputs.core || github.base_ref}}
submodules: recursive

- name: Checkout Masterfiles
uses: actions/checkout@v3
with:
repository: cfengine/masterfiles
path: masterfiles
ref: ${{steps.together.outputs.masterfiles || github.base_ref}}

- name: Checkout Buildscripts
uses: actions/checkout@v3
with:
repository: cfengine/buildscripts
path: buildscripts
fetch-depth: 20

- name: Checkout Nova
uses: actions/checkout@v3
with:
repository: cfengine/nova
path: nova
ref: ${{steps.together.outputs.nova || github.base_ref}}
ssh-key: ${{ secrets.GH_ACTIONS_SSH_DEPLOY_KEY_NOVA_REPO }}
ssh-known-hosts: github.com

- name: Checkout Enterprise
uses: actions/checkout@v3
with:
repository: cfengine/enterprise
path: enterprise
ref: ${{steps.together.outputs.enterprise || github.base_ref}}
submodules: recursive
ssh-key: ${{ secrets.GH_ACTIONS_SSH_DEPLOY_KEY_ENTERPRISE_REPO }}
ssh-known-hosts: github.com

- name: Checkout Mission Portal
uses: actions/checkout@v3
with:
repository: cfengine/mission-portal
path: mission-portal
ref: ${{steps.together.outputs.mission-portal || github.base_ref}}
submodules: recursive
ssh-key: ${{ secrets.GH_ACTIONS_SSH_DEPLOY_KEY_MISSION_PORTAL_REPO }}
ssh-known-hosts: github.com

- name: get PACKAGE_SHA for package cache
run: echo "PACKAGE_SHA=$(buildscripts/ci/package-sha.sh)" | tee -a ${GITHUB_ENV}

- name: get SHA of buildscripts/deps-packaging last commit
run: echo "DEPS_SHA=$(git log --pretty='format:%h' -1 -- .)" | tee -a ${GITHUB_ENV}
working-directory: buildscripts/deps-packaging

- name: restore artifacts cache
uses: actions/cache/restore@v3
with:
path: artifacts
key: artifacts-${{ env.PACKAGE_SHA }}
restore-keys: |
artifacts-${{ env.PACKAGE_SHA }}

- name: Restore dependency cache
uses: actions/cache/restore@v3
with:
path: cache
key: deps-${{ github.base_ref }}-${{ env.DEPS_SHA }}
restore-keys: |
deps-${{ github.base_ref }}
deps-master
deps

- name: restore configured and built core and nova projects
uses: actions/cache/restore@v3
with:
path: build
key: build-${{ env.PACKAGE_SHA }}
restore-keys: |
build-${{ env.PACKAGE_SHA }}


- name: Build package in docker
env:
GH_ACTIONS_SSH_KEY_BUILD_ARTIFACTS_CACHE: ${{ secrets.GH_ACTIONS_SSH_KEY_BUILD_ARTIFACTS_CACHE }}
run: |
if [ ! -f artifacts/cfe*deb ]; then
buildscripts/ci/docker-build-package.sh ${{ inputs.additional_artifacts }}
fi

- name: Save dependency cache
uses: actions/cache/save@v3
with:
path: cache
key: deps-${{ github.base_ref }}-${{ env.DEPS_SHA }}

- name: Save artifacts cache
uses: actions/cache/save@v3
with:
path: |
artifacts
packages
key: artifacts-${{ env.PACKAGE_SHA }}

- name: Save artifacts
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: artifacts
path: |
artifacts
packages
#
# - name: Checkout Masterfiles
# uses: actions/checkout@v3
# with:
# repository: cfengine/masterfiles
# path: masterfiles
# ref: ${{steps.together.outputs.masterfiles || github.base_ref}}
#
# - name: Checkout Buildscripts
# uses: actions/checkout@v3
# with:
# repository: cfengine/buildscripts
# path: buildscripts
# fetch-depth: 20
#
# - name: Checkout Nova
# uses: actions/checkout@v3
# with:
# repository: cfengine/nova
# path: nova
# ref: ${{steps.together.outputs.nova || github.base_ref}}
# ssh-key: ${{ secrets.GH_ACTIONS_SSH_DEPLOY_KEY_NOVA_REPO }}
# ssh-known-hosts: github.com
#
# - name: Checkout Enterprise
# uses: actions/checkout@v3
# with:
# repository: cfengine/enterprise
# path: enterprise
# ref: ${{steps.together.outputs.enterprise || github.base_ref}}
# submodules: recursive
# ssh-key: ${{ secrets.GH_ACTIONS_SSH_DEPLOY_KEY_ENTERPRISE_REPO }}
# ssh-known-hosts: github.com
#
# - name: Checkout Mission Portal
# uses: actions/checkout@v3
# with:
# repository: cfengine/mission-portal
# path: mission-portal
# ref: ${{steps.together.outputs.mission-portal || github.base_ref}}
# submodules: recursive
# ssh-key: ${{ secrets.GH_ACTIONS_SSH_DEPLOY_KEY_MISSION_PORTAL_REPO }}
# ssh-known-hosts: github.com
#
# - name: get PACKAGE_SHA for package cache
# run: echo "PACKAGE_SHA=$(buildscripts/ci/package-sha.sh)" | tee -a ${GITHUB_ENV}
#
# - name: get SHA of buildscripts/deps-packaging last commit
# run: echo "DEPS_SHA=$(git log --pretty='format:%h' -1 -- .)" | tee -a ${GITHUB_ENV}
# working-directory: buildscripts/deps-packaging
#
# - name: restore artifacts cache
# uses: actions/cache/restore@v3
# with:
# path: artifacts
# key: artifacts-${{ env.PACKAGE_SHA }}
# restore-keys: |
# artifacts-${{ env.PACKAGE_SHA }}
#
# - name: Restore dependency cache
# uses: actions/cache/restore@v3
# with:
# path: cache
# key: deps-${{ github.base_ref }}-${{ env.DEPS_SHA }}
# restore-keys: |
# deps-${{ github.base_ref }}
# deps-master
# deps
#
# - name: restore configured and built core and nova projects
# uses: actions/cache/restore@v3
# with:
# path: build
# key: build-${{ env.PACKAGE_SHA }}
# restore-keys: |
# build-${{ env.PACKAGE_SHA }}
#
#
# - name: Build package in docker
# env:
# GH_ACTIONS_SSH_KEY_BUILD_ARTIFACTS_CACHE: ${{ secrets.GH_ACTIONS_SSH_KEY_BUILD_ARTIFACTS_CACHE }}
# run: |
# if [ ! -f artifacts/cfe*deb ]; then
# buildscripts/ci/docker-build-package.sh ${{ inputs.additional_artifacts }}
# fi
#
# - name: Save dependency cache
# uses: actions/cache/save@v3
# with:
# path: cache
# key: deps-${{ github.base_ref }}-${{ env.DEPS_SHA }}
#
# - name: Save artifacts cache
# uses: actions/cache/save@v3
# with:
# path: |
# artifacts
# packages
# key: artifacts-${{ env.PACKAGE_SHA }}
#
# - name: Save artifacts
# if: success() || failure()
# uses: actions/upload-artifact@v4
# with:
# name: artifacts
# path: |
# artifacts
# packages
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
uses: ./.github/workflows/build-using-buildscripts.yml
secrets: inherit

deployment_tests:
needs: build_cfengine_hub_package
uses: ./.github/workflows/deployment-tests.yml
secrets: inherit
# deployment_tests:
# needs: build_cfengine_hub_package
# uses: ./.github/workflows/deployment-tests.yml
# secrets: inherit