Skip to content

replace k8s.gcr.io by registry.k8s.io #87

replace k8s.gcr.io by registry.k8s.io

replace k8s.gcr.io by registry.k8s.io #87

Workflow file for this run

name: Releases Images
on:
push:
tags:
- v*
workflow_dispatch:
jobs:
Images:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependent
run: |
make dependent
- name: Config Github
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub"
- name: Checkout
run: |
make $(basename ${GITHUB_REF})
- name: Build images
run: |
make build-image
- name: Login registry
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Push images
run: |
OLD_REGISTRY=registry.k8s.io REGISTRY="ghcr.io/$(echo ${{ github.repository }} | tr "A-Z" "a-z")" make push-image
- name: Sync others image
env:
GH_ID: ${{ github.actor }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
sudo mkdir -p /run/containers && sudo chmod 777 /run/containers
skopeo login -u ${GH_ID} -p ${GH_TOKEN} ghcr.io
REGISTRY="ghcr.io/$(echo ${{ github.repository }} | tr "A-Z" "a-z")" make image-other