From 91580043e02e596b5f1d66197cf9ec7edcd110c3 Mon Sep 17 00:00:00 2001 From: Rangi42 Date: Sat, 21 Sep 2024 09:59:28 -0400 Subject: [PATCH] Use latest docker/login-action --- .github/workflows/build-container.yml | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build-container.yml b/.github/workflows/build-container.yml index c5bcb24d..392d9acc 100644 --- a/.github/workflows/build-container.yml +++ b/.github/workflows/build-container.yml @@ -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 \ No newline at end of file + - 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