0
Fork 0
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:
Ramkumar Chinchani 2022-09-27 11:31:54 -07:00 committed by GitHub
parent b9d878e013
commit 18d17f5d4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 }}