Use latest docker/login-action

This commit is contained in:
Rangi42
2024-09-21 09:59:28 -04:00
parent 3e28e92622
commit 91580043e0

View File

@@ -1,5 +1,4 @@
name: Build Container image and publish it to GitHub Container Registry
name: Publish Docker image
on:
push:
branches:
@@ -9,14 +8,14 @@ jobs:
publish-docker-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image to the GHCR
run: |
docker build . --tag ghcr.io/gbdev/rgbds:master
docker push ghcr.io/gbdev/rgbds:master
- uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image to the GHCR
run: |
docker build . --tag ghcr.io/gbdev/rgbds:master
docker push ghcr.io/gbdev/rgbds:master