Commit Graph
15 Commits
Author SHA1 Message Date
Satyam Singh 22f2efd8d1 fix: correct release condition in GitHub Actions and globalize enviro… (#127)
# Refactor GitHub Actions Workflow: Containerization Build
## 🛠 Summary
This PR introduces several important improvements and cleanups to the
build-containerization-template GitHub Actions workflow for better
maintainability, correctness, and readability.

### 🔧 Changes Made
#### 1.  Fix invalid conditional syntax
- **!= is not supported in expressions** with **if**: in GitHub Actions.

- Only logical operators like !, &&, || are valid.

#### 2.  Globalized environment variables
- Moved CURRENT_SDK and DEVELOPER_DIR to the job-level env: block to:

- Avoid redundancy across steps

- Make the workflow more maintainable

### 3.  Replaced `secrets.GITHUB_TOKEN` with `github.token`
- Prefer github.token for GitHub-provided auth token to improve clarity
and scoping.

@katiewasnothere
2025-06-23 09:26:50 -07:00
Joseph Heck 445450dcce limits buildAndTest to Apple repository (#150)
Constrains the buildAndTest job to only run on the
`apple/containerization` repository due to Runner constraints.

Simplest solution - fixes #132
2025-06-17 14:20:20 -07:00
Dmitry Kovba a3cb1f0103 Update to Swift 6.2 and Swift 6.2-snapshot in vminitd (#94)
This PR resolves https://github.com/apple/containerization/issues/58 and
https://github.com/apple/containerization/issues/119. Requires updating
Swift and Static Linux SDK on GitHub runners. Please also see
https://github.com/apple/container/pull/195.
2025-06-13 17:46:30 -07:00
Kathryn Baldauf 4751d073bb Improve release tag regex (#122)
Matches changes made in https://github.com/apple/container/pull/187 by
@Thedarkmatter10

Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
2025-06-13 14:45:16 -07:00
Satyam Singh 5240d36464 fix: quote inputs and improve shell conditionals for safety (#68)
This PR improves **safety and consistency** of the GitHub Actions
workflow (build-test-images.yml) file by:
  - Using **[[ ... ]]** **instea**d of **[ ... ]** for conditionals.
- Adding **double quotes** around inputs and refs to **avoid**
evaluation issues.

This helps prevent bugs in **shell parsing**, especially with **empty or
misinterpreted** input values.


@katiewasnothere @wlan0
2025-06-10 13:54:48 -07:00
Kathryn Baldauf 2923b33836 Allow building docs from main (#53)
We eventually only want to support building docs from release branches
and tags, however, while we're working to initially set up the docs, we
may have some churn. So we want to be able to publish from main during
that churn.

Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
2025-06-09 16:40:22 -07:00
Kathryn Baldauf 0338c07283 Only allow docs publish on tags or release branches (#32)
Matches same changes on container
https://github.com/apple/container/pull/30

Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
2025-06-08 10:12:38 -07:00
Michael Crosby 9959810656 separate fetch-default-kernel make target (#27)
Signed-off-by: michael crosby <michael_crosby@apple.com>
2025-06-06 15:05:24 -07:00
Kathryn Baldauf 46260fd6a6 Move permissions in release and add id-token (#24)
Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
2025-06-05 20:28:08 -07:00
Kathryn Baldauf 8ecbd124e3 Fix refs parsing in gh action (#20)
Remove erroneous quotes when checking for wildcard match in GitHub
action

Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
2025-06-05 16:16:22 -07:00
Kathryn Baldauf 816a959ada Add id token for deploying docs (#18)
Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
2025-06-05 16:16:21 -07:00
Kathryn Baldauf 5624a8397e Add branch protection to the test image build pipeline (#15)
This adds branch protection to the workflow for building container test
images. This PR additionally moves the permissions for docs deploying to
be job level.

Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
2025-06-05 16:16:19 -07:00
Kathryn Baldauf 8d880efc36 Remove extra source tar from release (#13)
A release is made by default with sources in a tar and zip (example
[here](https://github.com/apple/containerization/releases/tag/untagged-a4e930d3152ef58348f1))
so we can remove this extra tar

Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
2025-06-05 16:16:17 -07:00
Kathryn Baldauf 502dab6108 Update containerization apple main (#4)
Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
2025-06-05 16:15:44 -07:00
Kathryn Baldauf 6bc739a670 Add github actions workflows (#1)
Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
2025-06-05 16:15:28 -07:00