install latest skopeo #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Publish opentracing images to GHCR" | |
on: | |
push: | |
branches: | |
- opentracing | |
defaults: | |
run: | |
shell: bash | |
permissions: | |
contents: read | |
jobs: | |
copy-opentracing: | |
name: Publish opentracing images to GHCR | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: read | |
id-token: write | |
packages: write | |
steps: | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
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 | |
skopeo copy -a docker://ghcr.io/pdabelf5/nginx-opentracing:nginx-1.27.0-alpine docker://ghcr.io/nginxinc/k8s-common:nginx-opentracing-1.27.0-alpine |