Skip to content
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
40 changes: 20 additions & 20 deletions .github/workflows/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,26 @@ on:

permissions:
contents: write
id-token: write

jobs:
goreleaser:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6
with:
go-version: '>=1.25.3'

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.HOMEBREW_REPO }}
uses: libops/terraform-linux-packages/.github/workflows/reusable-goreleaser.yaml@main
permissions:
contents: write
id-token: write
secrets: inherit
with:
go-version: ">=1.25.3"
publish-package-repo: true
package-name: sitectl-drupal
package-repo-prefix: sitectl
package-repo-label: sitectl
package-public-key-name: sitectl-archive-keyring
gcp-project: ${{ vars.LIBOPS_PACKAGES_GCLOUD_PROJECT }}
workload-identity-provider: ${{ vars.LIBOPS_PACKAGES_GCLOUD_OIDC_POOL }}
service-account: ${{ vars.LIBOPS_PACKAGES_GSA }}
gcs-bucket: ${{ vars.LIBOPS_PACKAGES_GCS_BUCKET }}
aptly-gpg-key-id: ${{ vars.LIBOPS_PACKAGES_APTLY_GPG_KEY_ID }}
aptly-gpg-private-key-secret: ${{ vars.LIBOPS_PACKAGES_APTLY_GPG_PRIVATE_KEY_SECRET }}
aptly-gpg-passphrase-secret: ${{ vars.LIBOPS_PACKAGES_APTLY_GPG_PASSPHRASE_SECRET }}
3 changes: 2 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ builds:
- binary: sitectl-drupal
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X main.version={{ .Version }} -X main.commit={{ .Commit }} -X main.date={{ .Date }}
goos:
- linux
- windows
Expand Down Expand Up @@ -65,4 +67,3 @@ nfpms:
- sitectl-drupal
dependencies:
- sitectl

10 changes: 9 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
package main

import (
"fmt"

"github.com/libops/sitectl-drupal/cmd"
"github.com/libops/sitectl/pkg/plugin"
)

var (
version = "dev"
commit = "none"
date = "unknown"
)

func main() {
sdk := plugin.NewSDK(plugin.Metadata{
Name: "drupal",
Version: "v0.0.3",
Version: fmt.Sprintf("%s (Built on %s from Git SHA %s)", version, date, commit),
Description: "Drupal utilities and migration tools",
Author: "libops",
})
Expand Down
Loading