Skip to content

Commit

Permalink
Updates to deploy maven galasa in release pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: Jade Carino <jade.carino@ibm.com>
  • Loading branch information
jadecarino committed Jan 18, 2023
1 parent 302f1a3 commit 6d29c3e
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 29 deletions.
3 changes: 3 additions & 0 deletions dockerfiles/galasabld/galasabld-dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ FROM alpine
ARG platform

COPY bin/galasabld-${platform} /bin/galasabld

COPY bin/ /usr/local/apache2/htdocs/

ENTRYPOINT ["/bin/galasabld"]
8 changes: 7 additions & 1 deletion dockerfiles/obr/obr-dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
ARG dockerRepository
ARG tag
FROM ${dockerRepository}/galasadev/galasabld:main AS buildutils

FROM ${dockerRepository}/galasadev/galasa-managers:${tag}

# RUN apt update && apt install -y ca-certificates && rm -rf /var/lib/apt/lists/*

COPY repo/ /usr/local/apache2/htdocs/
COPY obr.githash /usr/local/apache2/htdocs/obr.githash

COPY obr.githash /usr/local/apache2/htdocs/obr.githash
COPY --from=buildutils /usr/local/apache2/htdocs/galasabld-linux-amd64 /usr/local/apache2/htdocs/galasabld
RUN chmod +x /usr/local/apache2/htdocs/galasabld
2 changes: 1 addition & 1 deletion releasePipeline/30-deploy-maven-galasa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
kind: PipelineRun
apiVersion: tekton.dev/v1beta1
metadata:
generateName: complete-
generateName: deploy-maven-galasa-
annotations:
argocd.argoproj.io/compare-options: IgnoreExtraneous
argocd.argoproj.io/sync-options: Prune=false
Expand Down
12 changes: 1 addition & 11 deletions releasePipeline/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,4 @@ All the tests must past, reruns need to be managed manually at the moment.
1. Create a new Issue to cover the version bump and the appropriate branch development environment.
1. 99-move-to-new-version.md - Change the repos and files as listed in this file.
1. Run a complete build to verify everything looks ok.
1. Raise PRs to push the version changes. Due to the nature of Galasa build, later PRs will fail until the previous PRs are pushed and built.




TO DO:
20 - Update complete- PRun to make sure correct
21 - Update cli build PRun to make sure correct
30 - Make any updates
31 - Get sonatype login and check if still relevant
41 - Get Eclipse marketplace login
1. Raise PRs to push the version changes. Due to the nature of Galasa build, later PRs will fail until the previous PRs are pushed and built.
3 changes: 0 additions & 3 deletions releasePipeline/pipelines/deploy-maven-galasa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ spec:
- name: repository
type: string
default: "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2"
- name: dockerRepo
type: string
default: harbor.galasa.dev
#
#
#
Expand Down
19 changes: 6 additions & 13 deletions releasePipeline/tasks/deploy-maven-galasa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,13 @@ spec:
type: string
- name: repository
type: string
- name: dockerRepo
type: string
steps:
- name: cat
image: $(params.dockerRepo)/galasadev/galasa-obr:{{ .Values.branch }} // JADE TO DO - WHAT SHOULD THIS BE?
imagePullPolicy: Always
command:
- cat
- /workspace/git/$(context.pipelineRun.name)/creds/mavencreds.yaml
volumeMounts:
- name: mavencreds
mountPath: /workspace/git/$(context.pipelineRun.name)/creds
#
#
#
# Can't use generic galasabld task for this as requires galasabld to be run inside galasa-obr image
- name: deploy-maven
image: $(params.dockerRepo)/galasadev/galasa-obr:{{ .Values.branch }}
image: harbor.galasa.dev/galasadev/galasa-obr:release
imagePullPolicy: Always
command:
- /usr/local/apache2/htdocs/galasabld
Expand All @@ -46,4 +39,4 @@ spec:
volumes:
- name: mavencreds
secret:
secretName: maven-creds // JADE TO DO - FIND EQUIVALENT
secretName: maven-creds

0 comments on commit 6d29c3e

Please sign in to comment.