Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Setup skopeo in a GitHub Action

GitHub Super-Linter CI Check dist/ CodeQL Coverage

Use this action to setup environment of skopeo, and use skopeo to sync images across the registries. 🚀

Prerequisites

  • Basic knowledge of Docker images and skopeo which is a container tool to sync images across the registries.
  • This action runs using Node 20. If you are using self-hosted GitHub Actions runners, you must use a runner version that supports this version or newer.

Usage

jobs:
  job_id:
    steps:
      - name: 'Set up skopeo'
        uses: warjiang/setup-skopeo@main
        with:
          version: latest

      - name: 'Sync images'
        run: |
          skopeo --version
          skopeo copy --dest-creds \
          ${{ secrets.DEST_REGISTRY_USER }}:${{ secrets.DEST_REGISTRY_PASSWORD }} \
          docker://alpine:3.19 \
          docker://${{ secrets.DEST_REGISTRY }}/alpine:3.19

Inputs

  • version: (Optional) Set the version of skopeo. Default: latest. More information about supported versions can be found in the skopeo-binary version manifest.

Credits

  • skopeo-binary: generate the skopeo binary file, it fetches all the tags of official skopeo repository and generate the binary file for each tag by a cronjob.
  • actions/toolkit: some toolkits that are very useful for GitHub Actions.
  • actions/typescript-action: which is a template for creating a TypeScript action.

About

A GitHub Action for installing and configuring the skopeo CLI.

Resources

Stars

7 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages