Skip to content

Use AmazonLinux2023 in the archive plugin #666

@MahdiBM

Description

@MahdiBM

Describe the feature

Official Swift Amazon Linux 2023 are out.

Use Case

Amazon Linux 2 is very outdated.

Proposed Solution

Use Amazon Linux 2023 instead of Amazon Linux 2.

Other Information

Even in a swift:6.3-amazonlinux2023, Penny's deployment CI is for some reason building Amazon Linux 2 images in Docker.
Not sure why, but this feature request will resolve it anyway.
I did check system-release and it was what it should have been + correct file permissions (world-readable), so not sure how the plugin logic decided to use Amazon Linux 2.

Sample CI output:

-------------------------------------------------------------------------
configuration
-------------------------------------------------------------------------
{
  outputDirectory: ./zips
  products: ["UsersLambda"]
  buildConfiguration: release
  baseDockerImage: swift:amazonlinux2
  disableDockerImageUpdate: false
  containerCLI: docker
}
-------------------------------------------------------------------------
building "penny-bot"
-------------------------------------------------------------------------
building "UsersLambda"
-------------------------------------------------------------------------
archiving "UsersLambda"
-------------------------------------------------------------------------
/usr/bin/zip --recurse-paths --symlinks UsersLambda.zip bootstrap
Working directory: ./zips/UsersLambda
    adding: bootstrap
   (deflated 67%)
1 archive created
  * UsersLambda at ./zips/UsersLambda/UsersLambda.zip

Notice baseDockerImage: swift:amazonlinux2

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions