Skip to content

Commit c8454fc

Browse files
committed
Use docker/login-action; drop redundant docker hub steps
Signed-off-by: Tamal Saha <tamal@appscode.com>
1 parent 237e829 commit c8454fc

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,16 @@ jobs:
2929
- name: Set up Docker Buildx
3030
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
3131

32+
- name: Log in to the GitHub Container registry
33+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
34+
with:
35+
registry: ghcr.io
36+
username: 1gtm
37+
password: ${{ secrets.LGTM_GITHUB_TOKEN }}
38+
3239
- name: Publish to GitHub Container Registry
3340
env:
3441
REGISTRY: ghcr.io/stashed
35-
DOCKER_TOKEN: ${{ secrets.LGTM_GITHUB_TOKEN }}
36-
USERNAME: 1gtm
3742
APPSCODE_ENV: prod
3843
run: |
39-
docker login ghcr.io --username ${USERNAME} --password ${DOCKER_TOKEN}
4044
make release

0 commit comments

Comments
 (0)