Skip to content

Commit

Permalink
install latest skopeo
Browse files Browse the repository at this point in the history
  • Loading branch information
pdabelf5 committed May 31, 2024
1 parent 21cbf74 commit b98f661
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/actions/install-skopeo/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Install Skopeo
description: Install Skopeo from source on ubuntu runner

inputs:
version:
description: The Skopeo version to install
default: v1.14.3
required: false
repo:
description: The Skopeo repository
default: github.com/containers/skopeo
required: false

outputs:
result:
description: Did the installation succeed?
value: ${{ steps.result.outputs.result == 0 && true || false }}

runs:
using: composite
steps:

- name: Install Skopeo
id: result
run: |
sudo apt-get -y update
sudo apt install libgpgme-dev libassuan-dev libbtrfs-dev libdevmapper-dev pkg-config go-md2man
sudo mkdir -p $GOPATH/src/${{ inputs.repo }}
sudo git clone --depth 1 -b ${{ inputs.version }} https://${{ inputs.repo }} $GOPATH/src/${{ inputs.repo }}
pushd $GOPATH/src/${{ inputs.repo }} && sudo make install
popd
skopeo --version
echo "result=$?" >> $GITHUB_OUTPUT
shell: bash
3 changes: 3 additions & 0 deletions .github/workflows/publish-opentracing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Install latest skopeo
uses: ./.github/actions/install-skopeo

- name: Copy image tag
run: |
skopeo copy -a docker://ghcr.io/pdabelf5/nginx-opentracing:nginx-1.27.0 docker://ghcr.io/nginxinc/k8s-common:nginx-opentracing-1.27.0
Expand Down

0 comments on commit b98f661

Please sign in to comment.