#538  Error with step Build/Publish image in job
Released
bufferUnderrun opened 2 years ago

Maybe i'm not using it correctly ?

image.png

My repo contains a Dockerfile and this is my buildspec

version: 15
jobs:
- name: CI
  jobExecutor: docker-executor
  steps:
  - !CheckoutStep
    name: checkout
    cloneCredential: !DefaultCredential {}
    withLfs: false
    withSubmodules: false
    condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
  - !BuildImageStep
    name: test
    tags: '1.0'
    publish: false
    condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
  retryCondition: never
  maxRetries: 3
  retryDelay: 30
  cpuRequirement: 500
  memoryRequirement: 256
  timeout: 3600

Thanks for your help

Robin Shen commented 2 years ago

This is a bug, please specify Dockerfile for the BuildImageStep instead of leaving it empty.

OneDev changed state to 'Closed' 2 years ago
Previous Value Current Value
Open
Closed
OneDev commented 2 years ago

State changed as code fixing the issue is committed

Robin Shen commented 2 years ago

Also the tag needs to be specified in full name, for instance <tt>myregistry:5000/myorg/myrepo:1.0.0</tt>

OneDev changed state to 'Released' 2 years ago
Previous Value Current Value
Closed
Released
OneDev commented 2 years ago

State changed as build #2237 is successful

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Affected Versions
Not Found
Issue Votes (0)
Watchers (2)
Reference
onedev/server#538
Please wait...
Page is in error, reload to recover