You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Daniel Watford (Jira)" <ji...@apache.org> on 2023/04/20 10:35:00 UTC

[jira] [Created] (OFBIZ-12809) Forks of ofbiz-framework attempt to push images to ghcr.io/apache/ofbiz and fail

Daniel Watford created OFBIZ-12809:
--------------------------------------

             Summary: Forks of ofbiz-framework attempt to push images to ghcr.io/apache/ofbiz and fail
                 Key: OFBIZ-12809
                 URL: https://issues.apache.org/jira/browse/OFBIZ-12809
             Project: OFBiz
          Issue Type: Task
          Components: Docker
    Affects Versions: 22.01.01
            Reporter: Daniel Watford
            Assignee: Daniel Watford
             Fix For: 22.01.01


The _Build and push docker images_ github actions workflow will build docker container images and push them to ghcr.io/apache/ofbiz.
 
For forks of the GH apache/ofbiz-framework repository, the push step rightly fails since the fork does not have permission to push to ghcr.io/apache/ofbiz. However the whole workflow will report a failure meaning the build appears to fail.
 
Modify the workflow such that pushing of images to ghcr.io/apache/ofbiz only occurs for builds of the GH apache/ofbiz-framework repository.
 
This can be implemented using environment variables where the workflow only attempts to log into the target container registry (i.e. ghcr.io) and push to that repository if a particular environment variable is set.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)