gpt4 book ai didi

docker - 推送图像时GitHub CI解析HTTP 404响应主体

转载 作者:行者123 更新时间:2023-12-02 19:21:57 24 4
gpt4 key购买 nike

来自这个issue

我正在通过以下给定步骤使用GitHub Actions for Gradle项目:

name: Java CI

on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Set up JDK 13
uses: actions/setup-java@v1
with:
java-version: 13

- run: ./gradlew bootJar

- name: Login to Github regestry
run: docker login docker.pkg.github.com -u xxxxx -p xxxxx

- name: Build the Docker image
run: docker build . -t docker.pkg.github.com/sulimanlab/realtime-chat/realtimechat-snapshot-0.$GITHUB_REF


- name: Push the image to github
run: docker push docker.pkg.github.com/sulimanlab/realtime-chat/realtimechat-snapshot-0.$GITHUB_REF



在最后一步,我收到此错误:

The push refers to repository [docker.pkg.github.com/sulimanlab/realtime-chat/realtimechat-snapshot-0.refs/heads/master]

3aad04996f8f: Preparing

77cae8ab23bf: Preparing

error parsing HTTP 404 response body: invalid character 'p' after top-level value: "404 page not found\n"

最佳答案

实际上我使用了错误的环境变量来标记图像。

我使用了 $ GITHUB_REF 我应该使用的 $ GITHUB_SHA

关于docker - 推送图像时GitHub CI解析HTTP 404响应主体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58938410/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com