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:
|
||||
- main
|
||||
|
||||
env:
|
||||
GOLANG_VERSION: 1.18
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
@ -16,6 +13,11 @@ permissions:
|
|||
jobs:
|
||||
sync-golang:
|
||||
name: 'sync'
|
||||
strategy:
|
||||
matrix:
|
||||
golang_version:
|
||||
- 1.18
|
||||
- 1.19
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Log in to GitHub Docker Registry
|
||||
|
@ -24,9 +26,9 @@ jobs:
|
|||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Tag and push golang to ghcr
|
||||
run: |
|
||||
docker pull golang:${{ env.GOLANG_VERSION }}
|
||||
docker tag golang:${{ env.GOLANG_VERSION }} ghcr.io/${{ github.repository_owner }}/golang:${{ env.GOLANG_VERSION }}
|
||||
docker push ghcr.io/${{ github.repository_owner }}/golang:${{ env.GOLANG_VERSION }}
|
||||
docker trust inspect golang:${{ matrix.golang_version }}
|
||||
docker pull golang:${{ matrix.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