mirror of
https://github.com/project-zot/zot.git
synced 2025-01-20 22:52:51 -05:00
also sync golang 1.19 (#826)
Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
This commit is contained in:
parent
b9d878e013
commit
18d17f5d4c
1 changed files with 9 additions and 7 deletions
16
.github/workflows/sync-golang-image.yaml
vendored
16
.github/workflows/sync-golang-image.yaml
vendored
|
@ -6,9 +6,6 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
env:
|
|
||||||
GOLANG_VERSION: 1.18
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
|
@ -16,6 +13,11 @@ permissions:
|
||||||
jobs:
|
jobs:
|
||||||
sync-golang:
|
sync-golang:
|
||||||
name: 'sync'
|
name: 'sync'
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
golang_version:
|
||||||
|
- 1.18
|
||||||
|
- 1.19
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Log in to GitHub Docker Registry
|
- name: Log in to GitHub Docker Registry
|
||||||
|
@ -24,9 +26,9 @@ jobs:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Tag and push golang to ghcr
|
- name: Tag and push golang to ghcr
|
||||||
run: |
|
run: |
|
||||||
docker pull golang:${{ env.GOLANG_VERSION }}
|
docker trust inspect golang:${{ matrix.golang_version }}
|
||||||
docker tag golang:${{ env.GOLANG_VERSION }} ghcr.io/${{ github.repository_owner }}/golang:${{ env.GOLANG_VERSION }}
|
docker pull golang:${{ matrix.golang_version }}
|
||||||
docker push ghcr.io/${{ github.repository_owner }}/golang:${{ env.GOLANG_VERSION }}
|
docker tag golang:${{ matrix.golang_version }} ghcr.io/${{ github.repository_owner }}/golang:${{ matrix.golang_version }}
|
||||||
|
docker push ghcr.io/${{ github.repository_owner }}/golang:${{ matrix.golang_version }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue