Skip to content
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

ci: reenable some CI jobs #48

Merged
merged 1 commit into from
Mar 19, 2024
Merged
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
29 changes: 1 addition & 28 deletions .github/workflows/bump-formula-pr.yml.disabled
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,6 @@ on:
types: [released]

jobs:
homebrew-core:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no formula for Alloy in homebrew-core (yet), so this is being taken out.

name: homebrew-core
runs-on: ubuntu-latest
steps:
- name: Get latest release
uses: rez0n/actions-github-release@main
id: latest_release
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: "${{ github.repository }}"
type: "stable"

- name: Update Homebrew formula
if: 'steps.latest_release.outputs.release_id == github.event.release.id'
uses: dawidd6/action-homebrew-bump-formula@v3
with:
# Required, custom GitHub access token with the 'public_repo' and 'workflow' scopes
token: ${{secrets.HOMEBREW_FORMULA_GH_TOKEN}}
# Formula name, required
formula: grafana-agent
# Optional, will be determined automatically
tag: ${{github.ref}}
# Optional, will be determined automatically
revision: ${{github.sha}}
# Optional, if don't want to check for already open PRs
force: false # true

homebrew-grafana:
name: homebrew-grafana
runs-on: ubuntu-latest
Expand All @@ -52,7 +25,7 @@ jobs:
# Optional, defaults to homebrew/core
tap: grafana/grafana
# Formula name, required
formula: grafana-agent-flow
formula: alloy
# Optional, will be determined automatically
tag: ${{github.ref}}
# Optional, will be determined automatically
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
with:
context: ./build-image
push: false
tags: grafana/agent-build-image:latest
tags: grafana/alloy-build-image:latest
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image doesn't exist yet, but it will post-launch.

build-args: |
GO_RUNTIME=golang:1.22.1-bullseye

Expand All @@ -32,6 +32,6 @@ jobs:
with:
context: ./build-image
push: false
tags: grafana/agent-build-image:latest
tags: grafana/alloy-build-image:latest
build-args: |
GO_RUNTIME=mcr.microsoft.com/oss/go/microsoft/golang:1.22.1-bullseye
GO_RUNTIME=mcr.microsoft.com/oss/go/microsoft/golang:1.22.1-bullseye
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
- name: Create test Windows build image
uses: mr-smithers-excellent/docker-build-push@v6
with:
image: grafana/agent-build-image
image: grafana/alloy-build-image
tags: latest
registry: docker.io
pushImage: false
dockerfile: ./build-image/windows/Dockerfile
dockerfile: ./build-image/windows/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Release Helm chart
on:
push:
branches: [main]
# TODO(rfratto): uncomment these after launch
# push:
# branches: [main]
Comment on lines +4 to +5
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This must be disabled right now or the chart will be immediately published publicly, so this is disabled until after launch. For launch, the Helm chart can be published by manually triggering the workflow against main.

workflow_dispatch: {}
env:
CR_CONFIGFILE: "${{ github.workspace }}/source/operations/helm/cr.yaml"
CT_CONFIGFILE: "${{ github.workspace }}/source/operations/helm/ct.yaml"
Expand Down
Loading