Skip to content

Commit

Permalink
Merge pull request #50 from LinuxSuRen/push-release-ghcr
Browse files Browse the repository at this point in the history
Push released ks-jenkins image to ghcr.io as well
  • Loading branch information
LinuxSuRen authored Sep 22, 2021
2 parents 623907e + 69bca21 commit 8a6f8d0
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 191 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/Dockerfile-ks-jenkins-cache

This file was deleted.

2 changes: 0 additions & 2 deletions .github/workflows/build-dev-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ jobs:
run: |
docker login --username ${{ secrets.DOCKER_HUB_USER }} --password ${{secrets.DOCKER_HUB_TOKEN}}
mkdir -p ~/.m2
echo "${{secrets.MVN_SETTINGS}}" > ~/.m2/settings.xml
curl -L https://github.com/jenkins-zh/jenkins-cli/releases/latest/download/jcli-linux-amd64.tar.gz|tar xzv
export PATH=.:$PATH:phantomjs/bin
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,9 @@ jobs:
run: |
version=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
docker push kubespheredev/ks-jenkins:$version
- name: Push Image ghcr.io
run: |
version=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
docker login ghcr.io --username ${{ secrets.GH_USER }} --password ${{secrets.GH_TOKEN}}
docker tag kubespheredev/ks-jenkins:$version ghcr.io/kubesphere/ks-jenkins:$version
docker push ghcr.io/kubesphere/ks-jenkins:$version
141 changes: 0 additions & 141 deletions .github/workflows/ks-jenkins-cache.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ jobs:
uses: docker/setup-buildx-action@v1
- name: Build
run: |
mkdir -p ~/.m2
cat .github/workflows/settings.xml | base64 -d > ~/.m2/settings.xml
curl -L https://github.com/jenkins-zh/jenkins-cli/releases/latest/download/jcli-linux-amd64.tar.gz|tar xzv
export PATH=.:$PATH:phantomjs/bin
jcli cwp --install-artifacts --config-path formula.yaml \
Expand Down
35 changes: 0 additions & 35 deletions .github/workflows/settings.xml

This file was deleted.

0 comments on commit 8a6f8d0

Please sign in to comment.