Skip to content

Commit

Permalink
also sync golang 1.19 (#826)
Browse files Browse the repository at this point in the history
Signed-off-by: Ramkumar Chinchani <[email protected]>
  • Loading branch information
rchincha authored Sep 27, 2022
1 parent b9d878e commit 18d17f5
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/sync-golang-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,18 @@ on:
branches:
- main

env:
GOLANG_VERSION: 1.18

permissions:
contents: read
packages: write

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

0 comments on commit 18d17f5

Please sign in to comment.