File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 - name : Run CI
1717 run : |
1818 echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USER }} --password-stdin
19+ echo "${{ secrets.CR_PAT }}" | docker login https://ghcr.io -u ${{ secrets.CR_USER }} --password-stdin
1920 docker build -t ppiper/neo-cli:latest .
21+ docker tag ppiper/neo-cli:latest ghcr.io/sap/ppiper-neo-cli:latest
2022 docker push ppiper/neo-cli:latest
23+ docker push ghcr.io/sap/ppiper-cf-cli:latest
Original file line number Diff line number Diff line change 2626 - name : Build, test and push
2727 run : |
2828 echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USER }} --password-stdin
29+ echo "${{ secrets.CR_PAT }}" | docker login https://ghcr.io -u ${{ secrets.CR_USER }} --password-stdin
2930 docker build -t ppiper/neo-cli:${{ env.PIPER_version }} .
31+ docker tag ppiper/neo-cli:${{ env.PIPER_version }} ghcr.io/sap/ppiper-neo-cli:${{ env.PIPER_version }}
3032 docker push ppiper/neo-cli:${{ env.PIPER_version }}
33+ docker push ghcr.io/sap/ppiper-neo-cli:${{ env.PIPER_version }}
3134 - uses : SAP/project-piper-action@master
3235 with :
3336 piper-version : latest
Original file line number Diff line number Diff line change 11FROM maven:3.5-jdk-8-alpine
22
3+ LABEL org.opencontainers.image.source=https://github.com/SAP/devops-docker-neo-cli
4+ LABEL org.opencontainers.image.description="An image for the SAP neo cli"
5+ LABEL org.opencontainers.image.licenses=Apache-2.0
6+
37RUN apk add --no-cache bash && \
48 mvn com.sap.cloud:neo-javaee7-wp-maven-plugin:1.129.8:install-sdk -DsdkInstallPath=sdk -Dincludes=tools/**,license/**,sdk.version && \
59 chmod -R 777 sdk && \
You can’t perform that action at this time.
0 commit comments