Skip to content

Commit

Permalink
Publish Test
Browse files Browse the repository at this point in the history
  • Loading branch information
kciter authored Mar 28, 2021
1 parent 2488fbd commit 78acaf3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,14 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: docker login
run: |
echo $GCR_TOKEN | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
env:
GCR_TOKEN: ${{ secrets.GCR_TOKEN }}

- name: build and push latest docker image to GCR
run: |
echo ${{ secrets.GCR_TOKEN }} | docker login ghcr.io -u kciter --password-stdin
docker pull ghcr.io/kciter/aws-ecr-action:latest
docker build . -t ghcr.io/kciter/aws-ecr-action:$GITHUB_SHA --cache-from ghcr.io/kciter/aws-ecr-action:latest
docker build . --tag ghcr.io/kciter/aws-ecr-action:$GITHUB_SHA --cache-from ghcr.io/kciter/aws-ecr-action:latest
docker push ghcr.io/kciter/aws-ecr-action:$GITHUB_SHA

0 comments on commit 78acaf3

Please sign in to comment.