105 Commits

Author SHA1 Message Date
dependabot[bot]
b212bb496b
build(deps): bump actions/checkout from 4.2.0 to 4.2.1
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](d632683dd7...eef61447b9)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-07 18:20:29 +00:00
dependabot[bot]
6d23d4bdfd
build(deps): bump docker/setup-buildx-action from 3.7.0 to 3.7.1
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 3.7.0 to 3.7.1.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](8026d2bc36...c47758b77c)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-04 13:59:32 +00:00
dependabot[bot]
1efa41e704
build(deps): bump docker/setup-buildx-action from 3.6.1 to 3.7.0
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 3.6.1 to 3.7.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](988b5a0280...8026d2bc36)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-03 18:03:50 +00:00
dependabot[bot]
224d99be8a
build(deps): bump docker/build-push-action from 6.8.0 to 6.9.0
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 6.8.0 to 6.9.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](32945a3392...4f58ea7922)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-30 18:46:04 +00:00
dependabot[bot]
26e892ca2c
build(deps): bump docker/build-push-action from 6.7.0 to 6.8.0
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 6.7.0 to 6.8.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](5cd11c3a4c...32945a3392)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-27 18:47:08 +00:00
dependabot[bot]
2ba8f93bbe
build(deps): bump actions/checkout from 4.1.7 to 4.2.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.7 to 4.2.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](692973e3d9...d632683dd7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-25 18:11:59 +00:00
Mike McQuaid
b34253c621
docker: deprecate Ubuntu 18.04
Co-authored-by: Ruoyu Zhong <zhongruoyu@outlook.com>
Co-authored-by: Bo Anderson <mail@boanderson.me>
2024-09-24 15:38:03 +01:00
Ruoyu Zhong
ca9c4bf2e1
workflows/docker: publish homebrew/brew:master
When we don't care about which specific Ubuntu version to use,
`homebrew/brew:master` is better than `homebrew/ubuntu22.04:master` as
it allows us to implicitly rely on the default Ubuntu version.

See discussion at #18395.
2024-09-24 21:23:50 +08:00
Carlo Cabrera
40567115a3
workflows: use set -xeuo pipefail globally
This makes it easier to avoid subtle shell script bugs.
2024-09-22 19:56:20 +08:00
Mike McQuaid
34ffc9147d
workflows/docker: improve job names.
This makes it a bit more obvious in various GitHub UIs that don't
display the workflow name and more consistent with `tests.yml`.
2024-09-04 10:14:54 +01:00
Ruoyu Zhong
73b8950d87
workflows/docker: use safer delimiters
Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
2024-08-27 18:34:52 +08:00
Ruoyu Zhong
d452cd947d
workflows/docker: consolidate pushes in single step 2024-08-27 18:34:52 +08:00
Ruoyu Zhong
82f97bcf29
workflows/docker: use docker/build-push-action to build images
This allows us to use Docker's build cache across workflow runs.

Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
2024-08-27 18:29:59 +08:00
Ruoyu Zhong
ae2b3bc7d4
workflows/docker: only perform login when necessary 2024-08-27 18:29:59 +08:00
Ruoyu Zhong
e7e244e6c2
workflows/docker: tweak syntax
Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
2024-08-26 12:56:29 +08:00
Ruoyu Zhong
74e27a9127
workflow/tests: move Docker tests to docker.yml
It's more intuitive that way.
2024-08-26 12:28:34 +08:00
Carlo Cabrera
c0b72dd501
Revert "feat: add attestation to installer" 2024-08-20 01:26:27 +08:00
Sean Molenaar
96afc21057
fix: only add attestation to nightly docker 2024-08-16 08:19:52 -04:00
Sean Molenaar
266a1bc953
fix: only do Docker attestation on tags 2024-08-14 09:46:55 +02:00
Sean Molenaar
37df6fb424
Update docker.yml 2024-07-23 18:30:39 +02:00
Sean Molenaar
a9ca20dff5
Update docker.yml 2024-07-23 18:12:49 +02:00
Sean Molenaar
a7cd227469
fix: add debug info 2024-07-23 18:06:03 +02:00
Sean Molenaar
53fd88966e
Update .github/workflows/docker.yml 2024-07-23 17:59:52 +02:00
William Woodruff
501dc787f0
Apply suggestions from code review
Co-authored-by: Patrick Linnane <patrick@linnane.io>
2024-07-23 10:55:56 -04:00
Sean Molenaar
467645a511
fix: add permissions for docker attestation 2024-07-23 15:05:59 +02:00
Sean Molenaar
cd7660814d
feat: add docker attestation 2024-07-23 08:59:03 -04:00
Thierry Moisan
e2e9565984
workflows: pin actions 2024-07-13 10:50:43 -04:00
Bo Anderson
978f5adf47
Add Ubuntu 24.04 Docker image 2024-05-14 05:25:14 +01:00
Mike McQuaid
6a77ef2170
docker: stop building Ubuntu 16.04 image.
This is too slow to be building every time and we're long past the
deprecation date.

Fixes https://github.com/Homebrew/brew/issues/14661
2023-03-24 08:57:48 +00:00
Sebastian Pipping
bd16355a07 docker.yml: Run for pull requests also, for debuggability 2023-03-24 05:43:04 +01:00
Shaun Jackman
0de4282511
CI: Use ubuntu-22.04 rather than ubuntu-latest (ubuntu-20.04)
Use ubuntu-22.04 for the CI tests rather than ubuntu-latest,
which is currently ubuntu-20.04.
2022-09-06 14:16:16 +01:00
Bo Anderson
b4f7dbcc2b
Merge pull request #13218 from Homebrew/docker-brew-22.04
workflows/docker: base homebrew/brew on 22.04
2022-04-29 22:03:07 +01:00
Bo Anderson
3ddcf765d2
workflows/docker: base homebrew/brew on 22.04
Also disable fail-fast so that if a image upload fails we don't stop the other uploads halfway.
2022-04-28 21:21:40 +01:00
Bo Anderson
f15ac65ced
workflows/docker: add OCI metadata 2022-04-27 03:38:57 +01:00
Dawid Dziurla
3e88dcb7f7
workflows/docker: add 22.04 2022-04-24 22:33:47 +02:00
Bo Anderson
e3b760289f
Merge pull request #12063 from Homebrew/workflow-permissions
workflows: reduce GITHUB_TOKEN permissions
2021-09-16 15:15:55 +01:00
Bo Anderson
f38a3239e6
workflows: reduce GITHUB_TOKEN permissions 2021-09-15 15:10:11 +01:00
XuehaiPan
3f96d963f7 style: fix inconsistent code style for shell scripts 2021-09-15 14:59:01 +08:00
Mike McQuaid
09121244b4
github/workflows: use Homebrew/brew-specific packages token. 2021-04-06 10:22:51 +01:00
Bryce Glover
ce11d63ca8 [.github/workflows/docker.yml] jobs.ubuntu: Don't run on user forks. 2020-12-07 19:31:24 -05:00
Shohei Ueda
3497008e6c
Use GITHUB_ENV instead of set-env
https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/

> Action and workflow authors who are setting environment variables via stdout should update any usage of the set-env and add-path workflow commands to use the new environment files.
2020-10-15 10:34:52 +09:00
Mike McQuaid
5ac1ea8762 workflows: make homebrew lowercase again for Docker.
Otherwise this fails.
2020-09-03 13:31:34 +01:00
Mike McQuaid
a5fae14f1f workflows: tweak docker.
- Note GitHub Packages specifically in step names
- Use uppercase for Homebrew name/tag (in case it makes a difference)
- Use `--password-stdin` to avoid a warning
2020-09-03 11:16:59 +01:00
Mike McQuaid
8d07f4f15c workflows: migrate to GitHub Container Registry.
This seems a better fit for us (unauthenticated anonymous access) than
GitHub Packages Docker registry was.

Followed steps on:
https://docs.github.com/en/packages/getting-started-with-github-container-registry/migrating-to-github-container-registry-for-docker-images
2020-09-03 09:41:37 +01:00
Mike McQuaid
c6a5ea5f11 workflows: don't test paths on master.
This avoids weirdness like the merged PR commits being pushed to scheduled opened PRs after merging.

It also avoids wasting resources.
2020-08-26 14:02:44 +01:00
Mike McQuaid
d2fc08d942
GitHub Actions cleanup
- Add consistent spacing
- Remove `pull_request: []` warning
- remove identical, implicit `name` usage
- use `actions/cache@v1` for compatibility
2020-08-13 14:54:22 +01:00
Mike McQuaid
844c330cc5
workflows: test on "push" not "pull_request".
This ensures they have access to the correct secrets.
2020-08-11 14:01:27 +01:00
Mike McQuaid
3e4da13934
Cleanup more GitHub Actions usage
Increase consistency between workflows, use more of our actions and
`@main`.
2020-08-06 19:35:39 +01:00
Shaun Jackman
3d3aef4076 docker.yml: Tag homebrew/brew:$brew_version 2020-05-22 11:46:42 -07:00
Shaun Jackman
0c8a7b0488 Base homebrew/brew Docker image on ubuntu:20.04
Add a new image homebrew/ubuntu16.04 for building Linux bottles.
Tag the most recent stable release of each image as latest.
2020-05-20 22:11:42 -07:00