Skip to content

Commit

Permalink
Update sync-golang-image.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
eusebiu-constantin-petu-dbk authored Jun 16, 2022
1 parent a1414f2 commit 85529e8
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/sync-golang-image.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
name: 'Sync golang image from docker to ghcr'
on:
workflow_dispatch:
inputs:
golang_version:
required: true
description: The version of golang to push to ghcr.io/project-zot/*.
type: string
schedule:
- cron: '30 1 * * *'
push:
branches:
- master

env:
GOLANG_VERSION: ${{ github.event.inputs.golang_version }}
GOLANG_VERSION: 1.18

jobs:
sync-golang:
name: 'pull & push golang'
name: 'sync'
runs-on: ubuntu-latest
steps:
- name: Log in to GitHub Docker Registry
Expand All @@ -22,7 +21,7 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Tag and push to ghcr
- 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 }}
Expand Down

0 comments on commit 85529e8

Please sign in to comment.