Skip to content

Commit 0dda2ab

Browse files
authored
Merge pull request #39 from SAP/ghreg
Pushing to github registry
2 parents 9c8fb8d + e6e3286 commit 0dda2ab

5 files changed

Lines changed: 10 additions & 65 deletions

File tree

.github/workflows/push.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,8 @@ jobs:
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-neo-cli:latest

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ jobs:
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

.github/workflows/tests.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
FROM 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+
37
RUN 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 && \

test/integration/runTests.sh

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)