Sitelet https://github.com/gemfast/server/commit/cacd920f7676f5c25c0cef3fbacbf71d30e92ffa
Skip to content

Commit cacd920

Browse files
authored
Use the docker login action for authenticating. (#48)
Signed-off-by: Gregory Schofield <greg.c.schofield@gmail.com>
1 parent f56b462 commit cacd920

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

‎.github/workflows/build-and-release.yaml‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,14 @@ jobs:
205205
v="${{ steps.get-version.outputs.VERSION }}-pre"
206206
mv *.deb gemfast-$v-amd64.deb
207207
echo "VERSION=${v}" >> "$GITHUB_OUTPUT"
208+
- name: Login to GitHub Container Registry
209+
uses: docker/login-action@v3
210+
with:
211+
registry: ghcr.io
212+
username: ${{ github.actor }}
213+
password: ${{ secrets.GITHUB_TOKEN }}
208214
- name: Push docker image
209215
run: |
210-
echo ${GITHUB_TOKEN} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
211216
docker load < gemfast-${{ steps.get-version.outputs.VERSION }}-pre.tar
212217
docker tag server:${{ steps.get-version.outputs.VERSION }}-pre ghcr.io/gemfast/server:${{ steps.get-version.outputs.VERSION }}-pre
213218
docker push ghcr.io/gemfast/server:${{ steps.get-version.outputs.VERSION }}-pre
@@ -250,9 +255,14 @@ jobs:
250255
v="${{ steps.get-version.outputs.VERSION }}"
251256
mv *.deb gemfast-$v-amd64.deb
252257
echo "VERSION=${v}" >> "$GITHUB_OUTPUT"
258+
- name: Login to GitHub Container Registry
259+
uses: docker/login-action@v3
260+
with:
261+
registry: ghcr.io
262+
username: ${{ github.actor }}
263+
password: ${{ secrets.GITHUB_TOKEN }}
253264
- name: Push docker image
254265
run: |
255-
echo ${GITHUB_TOKEN} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
256266
docker load < gemfast-${{ steps.get-version.outputs.VERSION }}-pre.tar
257267
docker tag server:${{ steps.get-version.outputs.VERSION }}-pre ghcr.io/gemfast/server:${{ steps.get-version.outputs.VERSION }}
258268
docker push ghcr.io/gemfast/server:${{ steps.get-version.outputs.VERSION }}

‎VERSION‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.9.0
1+
0.9.1

0 commit comments

Comments
 (0)