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