You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build and push the image (in my case: Google Artifact Registry)
Expected behaviour
I would expect a manifest that has a mediaType of application/vnd.docker.distribution.manifest.v2+json (as it used to be before jan 19th/20th)
Actual behaviour
Instead now the manifest reads a mediaType of application/vnd.oci.image.index.v1+json. We use Google Cloud Run and apparently it can not use this mediaType (gives "image not found" warning, might be similar to #768 ?).
Please note that the workflow and Dockerfile have not changed in the past 2 months.
Configuration
Repository URL (if public): Private
Build URL (if public): Private
name: Deploy API to devon:
push:
branches: [ main ]paths:
- '***-api/**'env:
DOCKER_TAG: "europe-west4-docker.pkg.dev/***/***/***-api"jobs:
build-image:
name: Build docker imageruns-on: ubuntu-lateststeps:
- name: Checkout code uses: snow-actions/sparse-checkout@v1.2.0with:
patterns: | ***-api
- name: Set up Docker Buildxuses: docker/setup-buildx-action@v2
- name: Cache Docker layersuses: actions/cache@v3with:
path: /tmp/.buildx-cachekey: ${{ runner.os }}-buildx-${{ github.repository }}-***-apirestore-keys: | ${{ runner.os }}-buildx-***-api-
- name: Login to GARuses: docker/login-action@v2with:
registry: europe-west4-docker.pkg.devusername: _json_keypassword: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
- name: Build imageuses: docker/build-push-action@v3with:
context: ./***-apifile: ./***-api/.docker/Dockerfilepush: truetags: ${{env.DOCKER_TAG}}:${{ github.sha }},${{env.DOCKER_TAG}}:latestcache-from: type=local,src=/tmp/.buildx-cachecache-to: type=local,dest=/tmp/.buildx-cache-new# This ugly bit is necessary if you don't want your cache to grow forever# till it hits GitHub's limit of 5GB.# Temp fix# https://github.com/docker/build-push-action/issues/252# https://github.com/moby/buildkit/issues/1896
- name: Move cacherun: | rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cachedeploy-gce:
# n/a for bug reportdeploy-cloud-run:
# n/a for bug report
Logs
The github action does not fail, so the provided link to download archive does not work. Please see attached log from the build stage, step "metadata". You can see here a v1 version is created. log.txt
The text was updated successfully, but these errors were encountered:
Behaviour
Steps to reproduce this issue
Expected behaviour
Actual behaviour
Please note that the workflow and Dockerfile have not changed in the past 2 months.
Configuration
Logs
The text was updated successfully, but these errors were encountered: