-
Notifications
You must be signed in to change notification settings - Fork 16
37 lines (34 loc) · 1.05 KB
/
releases-images.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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: 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=k8s.gcr.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