Skip to content

Commit

Permalink
moving arch PKGBUILD to separate project
Browse files Browse the repository at this point in the history
  • Loading branch information
kehoecj committed Aug 16, 2024
1 parent 77d6a24 commit 93b559c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 121 deletions.
44 changes: 1 addition & 43 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
31 changes: 0 additions & 31 deletions PKGBUILD

This file was deleted.

28 changes: 4 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down
25 changes: 2 additions & 23 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
```
Expand Down

0 comments on commit 93b559c

Please sign in to comment.