From 93b559c2fddab0a686c09622af38561481594fc5 Mon Sep 17 00:00:00 2001 From: Clayton Kehoe Date: Fri, 16 Aug 2024 16:00:58 -0500 Subject: [PATCH] moving arch PKGBUILD to separate project --- .github/workflows/release.yml | 44 +---------------------------------- PKGBUILD | 31 ------------------------ README.md | 28 ++++------------------ index.md | 25 ++------------------ 4 files changed, 7 insertions(+), 121 deletions(-) delete mode 100644 PKGBUILD diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ff24a19a..db0ca691 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -46,46 +46,4 @@ jobs: ldflags: -w -s -extldflags "-static" -X github.com/Boeing/config-file-validator.version=${{ github.event.release.tag_name }} build_tags: -tags netgo project_path: cmd/validator - extra_files: LICENSE README.md - - registry-matrix: - name: Push Docker images to Container Registry - runs-on: ubuntu-latest - strategy: - matrix: - include: - - base: "alpine:3.19@sha256:c5b1261d6d3e43071626931fc004f70149baeba2c8ec672bd4f27761f8e1ad6b" - postfix: "" - - base: "scratch" - postfix: "-scratch" - - base: "ubuntu:20.04@sha256:874aca52f79ae5f8258faff03e10ce99ae836f6e7d2df6ecd3da5c1cad3a912b" - postfix: "-ubuntu" - - steps: - - name: Harden Runner - uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0 - with: - egress-policy: audit - - - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 - - name: Log in to the Container registry - uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - name: Extract metadata (tags, labels) for Docker - id: meta - uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 - with: - images: "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}${{ matrix.postfix }}" - - name: Build and push Docker image - uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 - with: - context: . - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - build-args: | - BASE_IMAGE=${{ matrix.base }} - VALIDATOR_VERSION=${{ github.event.release.tag_name }} + extra_files: LICENSE README.md \ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD deleted file mode 100644 index 219d24d4..00000000 --- a/PKGBUILD +++ /dev/null @@ -1,31 +0,0 @@ -# Maintainer: Clayton Kehoe <118750525+kehoecj@users.noreply.github.com> -# Author : wiz64 -pkgname=config-file-validator -pkgver=1.6.0 -pkgrel=1 -pkgdesc="A tool to validate the syntax of configuration files" -arch=('x86_64') -url="https://github.com/Boeing/config-file-validator" -license=('Apache 2.0') -depends=('glibc') -makedepends=('go') -source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz") -sha256sums=('SKIP') - -build() { - cd "$pkgname-$pkgver" - CGO_ENABLED=0 \ - GOOS=linux \ - GOARCH=amd64 \ - go build \ - -ldflags="-w -s -extldflags '-static' \ - -X github.com/Boeing/config-file-validator.version=$pkgver" \ - -tags netgo \ - -o validator \ - cmd/validator/validator.go -} - -package() { - cd "$pkgname-$pkgver" - install -Dm755 validator "$pkgdir/usr/bin/validator" -} diff --git a/README.md b/README.md index e61481f6..bc649241 100644 --- a/README.md +++ b/README.md @@ -57,28 +57,6 @@ ## Installation There are several ways to install the config file validator tool -### Docker - -We offer Alpine, Ubuntu, and Scratch containers - -#### Alpine - -``` -docker pull ghcr.io/boeing/config-file-validator:v1.6.0 -``` - -#### Ubuntu - -``` -docker pull ghcr.io/boeing/config-file-validator-ubuntu:v1.6.0 -``` - -#### Scratch - -``` -docker pull ghcr.io/boeing/config-file-validator-scratch:v1.6.0 -``` - ### Binary Releases Download and unpack from https://github.com/Boeing/config-file-validator/releases @@ -90,18 +68,20 @@ aqua g -i Boeing/config-file-validator ``` ### Arch Linux -We release a [PKGBUILD](https://github.com/Boeing/config-file-validator/blob/main/PKGBUILD) file for Arch Linux +We release an [AUR package](https://aur.archlinux.org/packages/config-file-validator) for the config-file-validator ``` +git clone https://aur.archlinux.org/config-file-validator.git cd config-file-validator makepkg -si ``` + ### `go install` If you have a go environment on your desktop you can use [go install](https://go.dev/doc/go-get-install-deprecation) to install the validator executable. The validator executable will be installed to the directory named by the GOBIN environment variable, which defaults to $GOPATH/bin or $HOME/go/bin if the GOPATH environment variable is not set. ``` -go install github.com/Boeing/config-file-validator/cmd/validator@v1.6.0 +go install github.com/Boeing/config-file-validator/cmd/validator@v1.7.1 ``` ## Usage diff --git a/index.md b/index.md index dc3e67dc..2c740ee1 100644 --- a/index.md +++ b/index.md @@ -71,28 +71,6 @@ ## Installation There are several ways to install the config file validator tool -### Docker - -We offer Alpine, Ubuntu, and Scratch containers - -#### Alpine - -``` -docker pull ghcr.io/boeing/config-file-validator:v1.6.0 -``` - -#### Ubuntu - -``` -docker pull ghcr.io/boeing/config-file-validator-ubuntu:v1.6.0 -``` - -#### Scratch - -``` -docker pull ghcr.io/boeing/config-file-validator-scratch:v1.6.0 -``` - ### Binary Releases Download and unpack from https://github.com/Boeing/config-file-validator/releases @@ -104,9 +82,10 @@ aqua g -i Boeing/config-file-validator ``` ### Arch Linux -We release a [PKGBUILD](https://github.com/Boeing/config-file-validator/blob/main/PKGBUILD) file for Arch Linux +We release an [AUR package](https://aur.archlinux.org/packages/config-file-validator) for the config-file-validator ``` +git clone https://aur.archlinux.org/config-file-validator.git cd config-file-validator makepkg -si ```