replace k8s.gcr.io by registry.k8s.io #84
Workflow file for this run
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: 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 |