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 af2026a commit a1414f2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/sync-golang-image.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
name: 'Sync golang image from docker to ghcr'
on:
workflow_dispatch:
inputs:
Expand All @@ -11,7 +12,7 @@ env:

jobs:
sync-golang:
name: 'Sync golang image from docker to ghcr'
name: 'pull & push golang'
runs-on: ubuntu-latest
steps:
- name: Log in to GitHub Docker Registry
Expand All @@ -24,5 +25,5 @@ jobs:
- name: Tag and push to ghcr
run: |
docker pull golang:${{ env.GOLANG_VERSION }}
docker tag golang:${{ env.GOLANG_VERSION }} ghcr.io/project-zot/golang:${{ env.GOLANG_VERSION }}
docker push ghcr.io/project-zot/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 }}

0 comments on commit a1414f2

Please sign in to comment.