Skip to content

Commit

Permalink
Add channels var to snap_release workflow (#130)
Browse files Browse the repository at this point in the history
* Add channel variable to release workflow

* Fix terraform lint
  • Loading branch information
Deezzir authored Dec 6, 2024
1 parent f7933be commit aacae5b
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ templates = {
source = "./templates/github/snap_release.yaml.tftpl"
destination = ".github/workflows/release.yaml"
vars = {
runs_on = "[[ubuntu-22.04], [self-hosted, jammy, ARM64]]",
runs_on = "[[ubuntu-22.04], [self-hosted, jammy, ARM64]]",
channels = "latest/edge"
}
}
yamllint = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ templates = {
source = "./templates/github/snap_release.yaml.tftpl"
destination = ".github/workflows/release.yaml"
vars = {
runs_on = "[[ubuntu-22.04]]",
runs_on = "[[ubuntu-22.04]]",
channels = "latest/edge"
}
}
jira_sync_config = {
Expand Down
3 changes: 2 additions & 1 deletion terraform-plans/configs/dcgm-snap_main.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ templates = {
source = "./templates/github/snap_release.yaml.tftpl"
destination = ".github/workflows/release.yaml"
vars = {
runs_on = "[[ubuntu-22.04], [self-hosted, jammy, ARM64]]",
runs_on = "[[ubuntu-22.04], [self-hosted, jammy, ARM64]]",
channels = "core24/edge,latest/edge"
}
}
yamllint = {
Expand Down
3 changes: 2 additions & 1 deletion terraform-plans/configs/derper-snap_main.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ templates = {
source = "./templates/github/snap_release.yaml.tftpl"
destination = ".github/workflows/release.yaml"
vars = {
runs_on = "[[ubuntu-22.04]]",
runs_on = "[[ubuntu-22.04]]",
channels = "latest/edge"
}
}
yamllint = {
Expand Down
3 changes: 2 additions & 1 deletion terraform-plans/configs/headscale-snap_main.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ templates = {
source = "./templates/github/snap_release.yaml.tftpl"
destination = ".github/workflows/release.yaml"
vars = {
runs_on = "[[ubuntu-22.04]]",
runs_on = "[[ubuntu-22.04]]",
channels = "latest/edge"
}
}
yamllint = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ templates = {
source = "./templates/github/snap_release.yaml.tftpl"
destination = ".github/workflows/release.yaml"
vars = {
runs_on = "[[ubuntu-22.04]]",
runs_on = "[[ubuntu-22.04]]",
channels = "latest/edge"
}
}
jira_sync_config = {
Expand Down
3 changes: 2 additions & 1 deletion terraform-plans/configs/prometheus-juju-exporter_main.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ templates = {
source = "./templates/github/snap_release.yaml.tftpl"
destination = ".github/workflows/release.yaml"
vars = {
runs_on = "[[ubuntu-22.04]]",
runs_on = "[[ubuntu-22.04]]",
channels = "latest/edge"
}
}
jira_sync_config = {
Expand Down
3 changes: 2 additions & 1 deletion terraform-plans/configs/smartctl-exporter-snap_main.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ templates = {
source = "./templates/github/snap_release.yaml.tftpl"
destination = ".github/workflows/release.yaml"
vars = {
runs_on = "[[ubuntu-22.04], [self-hosted, jammy, ARM64]]",
runs_on = "[[ubuntu-22.04], [self-hosted, jammy, ARM64]]",
channels = "latest/edge"
}
}
yamllint = {
Expand Down
3 changes: 2 additions & 1 deletion terraform-plans/configs/tailscale-snap_main.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ templates = {
source = "./templates/github/snap_release.yaml.tftpl"
destination = ".github/workflows/release.yaml"
vars = {
runs_on = "[[ubuntu-22.04]]",
runs_on = "[[ubuntu-22.04]]",
channels = "latest/edge"
}
}
yamllint = {
Expand Down
3 changes: 2 additions & 1 deletion terraform-plans/templates/github/snap_release.yaml.tftpl
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ jobs:
SNAPCRAFT_STORE_CREDENTIALS: $${{ secrets.STORE_LOGIN }}
with:
snap: $${{ env.SNAP_FILE }}
release: latest/edge
# Comma-separated list of channels to release the snap to.
release: ${channels}

0 comments on commit aacae5b

Please sign in to comment.