Skip to content

Commit

Permalink
create first release
Browse files Browse the repository at this point in the history
  • Loading branch information
Knappek committed Jun 20, 2019
1 parent 3dd16c2 commit 4dfa356
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 56 deletions.
69 changes: 14 additions & 55 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,14 @@ steps:
- name: build
pull: always
image: golang:1.12-alpine
volumes:
- name: go_bin
path: /go/bin
commands:
- apk add --update alpine-sdk
- make build
when:
event:
- push
- tag
- pull_request

- name: docker
image: plugins/docker
Expand All @@ -37,58 +35,19 @@ steps:
repo: knappek/mongodbatlas-operator
tag:
- latest
- 0.0.1
when:
event:
- push

# - name: docker
# pull: always
# image: docker:18.09
# volumes:
# - name: go_bin
# path: /go/bin
# environment:
# GOPATH: /go/
# commands:
# - export PATH=$PATH:/go/bin
# - pwd
# - echo $GOPATH
# - which dep
# - apk add -U make
# - make docker-build
# when:
# event:
# - push
# - tag

# volumes:
# - name: go_bin
# temp: {}


# - name: push_docker
# image: plugins/docker
# pull: always
# settings:
# username: knappek
# password:
# from_secret: DOCKERHUB_PASSWORD
# repo: knappek/mongodbatlas-operator
# tag:
# - latest
# when:
# event:
# - push
# - tag
- tag

# - name: github
# pull: default
# image: plugins/github-release
# settings:
# files: "dist/*"
# environment:
# GITHUB_TOKEN:
# from_secret: github_token
# when:
# event:
# - tag
- name: release
pull: default
image: plugins/github-release
settings:
files: "build/*"
environment:
GITHUB_TOKEN:
from_secret: github_token
when:
event:
- tag
2 changes: 1 addition & 1 deletion deploy/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
containers:
- name: mongodbatlas-operator
# Replace this with the built image name
image: knappek/mongodbatlas-operator:latest
image: knappek/mongodbatlas-operator:0.0.1
command:
- mongodbatlas-operator
imagePullPolicy: Always
Expand Down

0 comments on commit 4dfa356

Please sign in to comment.