Skip to content

Update gcr.io/distroless/static Docker digest to d27f8df #48

Update gcr.io/distroless/static Docker digest to d27f8df

Update gcr.io/distroless/static Docker digest to d27f8df #48

name: csi-node-driver-registrar
on:
push:
paths:
- '.github/workflows/csi-node-driver-registrar.yml'
- 'docker_builds/csi-node-driver-registrar/**'
- '!docker_builds/csi-node-driver-registrar/*.md'
jobs:
build:
runs-on: ubuntu-latest
env:
VERSION: $(cat docker_builds/csi-node-driver-registrar/.version)
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Set up Docker Buildx
uses: crazy-max/ghaction-docker-buildx@v3
with:
buildx-version: latest
-
name: Cache Docker layers
uses: actions/cache@v2
id: cache
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
-
name: Docker Buildx (build)
run: |
docker buildx build \
--cache-from "type=local,src=/tmp/.buildx-cache" \
--cache-to "type=local,dest=/tmp/.buildx-cache" \
--platform linux/amd64,linux/arm/v7,linux/arm64 \
--output "type=image,push=false" \
--tag enros/csi-node-driver-registrar:latest \
--file ./docker_builds/csi-node-driver-registrar/Dockerfile \
./docker_builds/csi-node-driver-registrar/
-
name: Login to GitHub Docker Registry
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: |
echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin
-
name: Docker Buildx (push)
run: |
docker buildx build \
--cache-from "type=local,src=/tmp/.buildx-cache" \
--platform linux/amd64,linux/arm/v7,linux/arm64 \
--output "type=image,push=true" \
--tag enros/csi-node-driver-registrar:latest \
--file ./docker_builds/csi-node-driver-registrar/Dockerfile \
./docker_builds/csi-node-driver-registrar/
-
name: Docker Check Manifest
run: |
docker run --rm mplatform/mquery enros/csi-node-driver-registrar:latest
-
name: Clear
if: always()
run: |
rm -f ${HOME}/.docker/config.json