docker / build-push-action

GitHub Action to build and push Docker images with Buildx
https://github.com/marketplace/actions/build-and-push-docker-images
Apache License 2.0
4.13k stars 532 forks source link

Node 16 no longer available via nodesource #946

Closed mcsgroi closed 10 months ago

mcsgroi commented 10 months ago

Contributing guidelines

I've found a bug, and:

Description

Node 16 seems to no longer be provided via nodesource.

Node 16 url being used doesn't resolve a download: https://deb.nodesource.com/node_16.x/pool/main/n/nodejs/nodejs_16.20.2-deb-1nodesource1_amd64.deb

Node 18 url resolves: https://deb.nodesource.com/node_18.x/pool/main/n/nodejs/nodejs_18.17.1-deb-1nodesource1_amd64.deb

Expected behaviour

I expect the build and push plugin to be able to resolve dependencies and run.

Actual behaviour

Runs fail with:

#14 5.298 Err:1 https://deb.nodesource.com/node_16.x bullseye/main amd64 nodejs amd64 16.20.2-deb-1nodesource1
#14 5.298   404  Not Found [IP: 172.67.10.205 443]
#14 5.305 E: Failed to fetch https://deb.nodesource.com/node_16.x/pool/main/n/nodejs/nodejs_16.20.2-deb-1nodesource1_amd64.deb  404  Not Found [IP: 172.67.10.205 443]
#14 5.305 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
#14 ERROR: process "/bin/sh -c curl -fsSL https://deb.nodesource.com/setup_16.x | bash - && apt-get install -y nodejs" did not complete successfully: exit code: 100

Repository URL

No response

Workflow run URL

No response

YAML workflow

name: Publish Docker image

on:
  workflow_dispatch:
  release:
    types: [published]
  push:
    branches: ["master", "main"]
  pull_request:
    branches:
      - 'master'
      - 'main'

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

jobs:
  push_to_registries:
    name: Push Docker image to multiple registries
    runs-on: ubuntu-latest
    permissions:
      packages: write
      contents: read
    steps:
      - name: Check out the repo
        uses: actions/checkout@v3

      - name: Log in to the Container registry
        uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
        with:
          registry: ghcr.io
          username: ${{ github.actor }}
          password: ${{ secrets.GITHUB_TOKEN }}

      - name: Extract metadata (tags, labels) for Docker
        id: meta
        uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
        with:
          tags: |
            type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
            type=sha,format=long,prefix=sha-,suffix=
          images: |
            ghcr.io/${{ github.repository }}

      - name: Build and push Docker images
        uses: docker/build-push-action@v4
        with:
          context: .
          push: ${{ github.event_name != 'pull_request' }}
          tags: ${{ steps.meta.outputs.tags }}
          labels: ${{ steps.meta.outputs.labels }}
          build-args: |
            ARG1=Value1
            ARG2=Value2

Workflow logs

No response

BuildKit logs

No response

Additional info

No response

mcsgroi commented 10 months ago

False alarm. This seems to have been a temporary outage around the package CDN. It is working now.