Skip to content

Commit

Permalink
fix rock and ci (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucabello committed Oct 19, 2023
1 parent 9bdd075 commit 955c911
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 16 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/rock-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,3 @@ jobs:
rock-name: prometheus-pushgateway
source-repo: prometheus/pushgateway
check-go: true
update-script: |
# The caller must provide \$application_src and \$rockcraft_yaml
# \$application_src: The root folder of the cloned upstream project
# \$rockcraft_yaml: Path of the rockcraft.yaml to update
#
## Node dependency
6 changes: 3 additions & 3 deletions 1.6.0/rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ base: ubuntu:22.04
build-base: ubuntu:22.04
license: Apache-2.0
services:
pushgateway:
prometheus-pushgateway:
command: /bin/pushgateway
override: replace
startup: enabled
platforms:
amd64:
parts:
pushgateway:
prometheus-pushgateway:
plugin: go
source: https://github.com/prometheus/pushgateway
source-type: git
Expand All @@ -27,7 +27,7 @@ parts:
make build
install -D -m755 pushgateway ${CRAFT_PART_INSTALL}/bin/pushgateway
organize:
pushgateway: bin/pushgateway
prometheus-pushgateway: bin/pushgateway
# We moved this here because: https://github.com/canonical/rockcraft/issues/343
ca-certs:
plugin: nil
Expand Down
6 changes: 3 additions & 3 deletions 1.6.1/rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ base: ubuntu:22.04
build-base: ubuntu:22.04
license: Apache-2.0
services:
pushgateway:
prometheus-pushgateway:
command: /bin/pushgateway
override: replace
startup: enabled
platforms:
amd64:
parts:
pushgateway:
prometheus-pushgateway:
plugin: go
source: https://github.com/prometheus/pushgateway
source-type: git
Expand All @@ -27,7 +27,7 @@ parts:
make build
install -D -m755 pushgateway ${CRAFT_PART_INSTALL}/bin/pushgateway
organize:
pushgateway: bin/pushgateway
prometheus-pushgateway: bin/pushgateway
# We moved this here because: https://github.com/canonical/rockcraft/issues/343
ca-certs:
plugin: nil
Expand Down
8 changes: 4 additions & 4 deletions 1.6.2/rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ base: ubuntu:22.04
build-base: ubuntu:22.04
license: Apache-2.0
services:
pushgateway:
prometheus-pushgateway:
command: /bin/pushgateway
override: replace
startup: enabled
platforms:
amd64:
parts:
pushgateway:
prometheus-pushgateway:
plugin: go
source: https://github.com/prometheus/pushgateway
source-type: git
source-tag: "v1.6.1"
source-tag: "v1.6.2"
build-snaps:
- go/1.19/stable
build-packages:
Expand All @@ -27,7 +27,7 @@ parts:
make build
install -D -m755 pushgateway ${CRAFT_PART_INSTALL}/bin/pushgateway
organize:
pushgateway: bin/pushgateway
prometheus-pushgateway: bin/pushgateway
# We moved this here because: https://github.com/canonical/rockcraft/issues/343
ca-certs:
plugin: nil
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# prometheus-pushgateway-rock

[![Open a PR to OCI Factory](https://github.com/canonical/prometheus-pushgateway-rock/actions/workflows/rock-release-oci-factory.yaml/badge.svg)](https://github.com/canonical/prometheus-pushgateway-rock/actions/workflows/rock-release-oci-factory.yaml)
[![Publish to GHCR:dev](https://github.com/canonical/prometheus-pushgateway-rock/actions/workflows/rock-release-dev.yaml/badge.svg)](https://github.com/canonical/prometheus-pushgateway-rock/actions/workflows/rock-release-dev.yaml)
[![Update ROCK](https://github.com/canonical/prometheus-pushgateway-rock/actions/workflows/rock-update.yaml/badge.svg)](https://github.com/canonical/prometheus-pushgateway-rock/actions/workflows/rock-update.yaml)

Expand Down

0 comments on commit 955c911

Please sign in to comment.