Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/publish docker on tag #2485

Merged
merged 2 commits into from
Nov 19, 2019
Merged

Conversation

DeepDiver1975
Copy link
Member

@DeepDiver1975 DeepDiver1975 commented Nov 18, 2019

Description

Build a docker image for phoenix using build artifacts from drone and push the image to docker hub

Motivation and Context

Provide an image for phoenix

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Open tasks:

  • ...

@DeepDiver1975 DeepDiver1975 self-assigned this Nov 18, 2019
@DeepDiver1975 DeepDiver1975 added the Status:Needs-Review Needs review from a maintainer label Nov 18, 2019
.drone.yml Outdated
@@ -4963,6 +4963,7 @@ steps:
image: toolhippie/docker:latest
commands:
- docker build -t owncloud/phoenix:${DRONE_COMMIT_SHA}-${DRONE_BUILD_NUMBER} .
- docker push owncloud/phoenix:${DRONE_COMMIT_SHA}-${DRONE_BUILD_NUMBER}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should not be published with this tag, please define a proper tag, :latest could be built from master branch, a git tag should be autoi tagged, e.g. v1.1.0 gets tagged as :1, :1.1 and :1.1.0

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

having proper automated releases on tag is what we need to do . yes

  • pushing a tag
  • build docker image and public
  • build appstore tarzg and publish as github release (marketplace upload can happen manually)

@@ -35,7 +35,7 @@ help:

.PHONY: dist
dist: ## Build distribution
dist: distdir javascript oc-app distconf sign package
dist: distdir javascript oc-app distconf sign package docker-image
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why should that be part of the release makefile?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought when doing a release having a docker image being spit out is reasonable ....
... this all needs more automation and then the release makefile can die ...

@@ -566,7 +566,8 @@ def buildDockerImage():
'DOCKER_HOST': 'tcp://docker:2375'
},
'commands': [
'docker build -t owncloud/phoenix:${DRONE_COMMIT_SHA}-${DRONE_BUILD_NUMBER} .'
'docker build -t owncloud/phoenix:${DRONE_COMMIT_SHA}-${DRONE_BUILD_NUMBER} .',
'docker push owncloud/phoenix:latest'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to add docker tag owncloud/phoenix:${DRONE_COMMIT_SHA}-${DRONE_BUILD_NUMBER} owncloud/phoenix:latest

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@ownclouders
Copy link
Contributor

💥 Acceptance tests SharingInternalUsers failed. Please find the screenshots inside ...

https://drone.owncloud.com/owncloud/phoenix/6532/

20191119-085553-763.png
20191119-085625-474.png

@DeepDiver1975 DeepDiver1975 merged commit a23f2ef into master Nov 19, 2019
@delete-merged-branch delete-merged-branch bot deleted the feature/publish-docker-on-tag branch November 19, 2019 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status:Needs-Review Needs review from a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants