From 538d57290b62b6b95e6d4070a136e5de7f30a3c0 Mon Sep 17 00:00:00 2001 From: Anjan Nath Date: Fri, 7 Jun 2024 11:04:33 +0530 Subject: [PATCH] Remove github actions job for pack-cli arch package The `pack-cli` package has been adopted by the arch linux extra repository: https://archlinux.org/packages/extra/x86_64/pack-cli/ and hence the namespace has been removed from aur Signed-off-by: Anjan Nath --- .github/workflows/delivery-archlinux.yml | 58 ------------------- .../workflows/delivery/archlinux/README.md | 4 +- .../delivery/archlinux/pack-cli/PKGBUILD | 22 ------- 3 files changed, 2 insertions(+), 82 deletions(-) delete mode 100644 .github/workflows/delivery/archlinux/pack-cli/PKGBUILD diff --git a/.github/workflows/delivery-archlinux.yml b/.github/workflows/delivery-archlinux.yml index 0a1b66d2e..ce7829c09 100644 --- a/.github/workflows/delivery-archlinux.yml +++ b/.github/workflows/delivery-archlinux.yml @@ -11,64 +11,6 @@ on: required: true jobs: - pack-cli: - runs-on: ubuntu-latest - env: - PACKAGE_NAME: pack-cli - steps: - - uses: actions/checkout@v4 - - name: Determine version - uses: actions/github-script@v7 - id: version - with: - result-encoding: string - script: | - let payload = context.payload; - let tag = (payload.release && payload.release.tag_name) || (payload.inputs && payload.inputs.tag_name); - if (!tag) { - throw "ERROR: unable to determine tag" - } - return tag.replace(/^v/, ''); - - name: Set PACK_VERSION - run: echo "PACK_VERSION=${{ steps.version.outputs.result }}" >> $GITHUB_ENV - shell: bash - - name: Setup working dir - run: | - mkdir -p ${{ env.PACKAGE_NAME }} - cp .github/workflows/delivery/archlinux/${{ env.PACKAGE_NAME }}/PKGBUILD ${{ env.PACKAGE_NAME }}/PKGBUILD - - name: Metadata - id: metadata - run: | - url=https://github.com/buildpacks/pack/archive/v${{ env.PACK_VERSION }}.tar.gz - filename=pack-${{ env.PACK_VERSION }}.tgz - fullpath=`pwd`/$filename - - curl -sSL "$url" -o "$fullpath" - sha512=$(sha512sum "$fullpath" | awk '{ print $1 }') - echo "url=$url" >> $GITHUB_OUTPUT - echo "sha512=$sha512" >> $GITHUB_OUTPUT - - name: Fill PKGBUILD - uses: cschleiden/replace-tokens@v1 - with: - files: ${{ env.PACKAGE_NAME }}/PKGBUILD - tokenPrefix: '{{' - tokenSuffix: '}}' - env: - PACK_VERSION: ${{ env.PACK_VERSION }} - SRC_TGZ_URL: ${{ steps.metadata.outputs.url }} - SRC_TGZ_SHA: ${{ steps.metadata.outputs.sha512 }} - - name: Print PKGBUILD - run: cat ${{ env.PACKAGE_NAME }}/PKGBUILD - - name: Test - uses: docker://archlinux:latest - with: - entrypoint: .github/workflows/delivery/archlinux/test-install-package.sh - - name: Publish - uses: docker://archlinux:latest - env: - AUR_KEY: ${{ secrets.AUR_KEY }} - with: - entrypoint: .github/workflows/delivery/archlinux/publish-package.sh pack-cli-bin: runs-on: ubuntu-latest env: diff --git a/.github/workflows/delivery/archlinux/README.md b/.github/workflows/delivery/archlinux/README.md index df07ee6fa..14279c306 100644 --- a/.github/workflows/delivery/archlinux/README.md +++ b/.github/workflows/delivery/archlinux/README.md @@ -1,8 +1,8 @@ # Arch Linux -There are 3 maintained packages: +There are two maintained packages by us and one official archlinux package: -- [pack-cli](https://aur.archlinux.org/packages/pack-cli/): The latest release of `pack`, compiled from source. +- [pack-cli](https://archlinux.org/packages/extra/x86_64/pack-cli/): Official Archlinux package in the 'Extra' repo. - [pack-cli-bin](https://aur.archlinux.org/packages/pack-cli-bin/): The latest release of `pack`, precompiled. - [pack-cli-git](https://aur.archlinux.org/packages/pack-cli-git/): An unreleased version of `pack`, compiled from source of the `main` branch. diff --git a/.github/workflows/delivery/archlinux/pack-cli/PKGBUILD b/.github/workflows/delivery/archlinux/pack-cli/PKGBUILD deleted file mode 100644 index b56e418fb..000000000 --- a/.github/workflows/delivery/archlinux/pack-cli/PKGBUILD +++ /dev/null @@ -1,22 +0,0 @@ -# Maintainer: Michael William Le Nguyen -# Maintainer: Buildpacks Maintainers -pkgname=pack-cli -pkgver={{PACK_VERSION}} -pkgrel=1 -pkgdesc="CLI for building apps using Cloud Native Buildpacks" -arch=('x86_64') -url="https://buildpacks.io/" -license=('Apache') -makedepends=('go-pie') -source=("{{SRC_TGZ_URL}}") -sha512sums=("{{SRC_TGZ_SHA}}") -build() { - export GOPATH="${srcdir}/go" - cd "${srcdir}/pack-${pkgver}" - PACK_VERSION="v${pkgver}" make build -} -package() { - export GOPATH="${srcdir}/go" - go clean -modcache - install -D -m755 "${srcdir}/pack-${pkgver}/out/pack" "${pkgdir}/usr/bin/pack" -}