Skip to content

Commit

Permalink
Push swoole/swow images to coding.net
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo committed Jun 15, 2024
1 parent 6650b79 commit 211a21c
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build Develop

on: [ push ]
env:
COMPOSER_VERSION: '2.7.6'
COMPOSER_VERSION: '2.7.7'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
build:
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/build-swoole.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ name: Build Swoole
on: [ push ]
env:
ENGINE: 'swoole'
SW_VERSION: 'v5.1.2'
COMPOSER_VERSION: '2.7.6'
SW_VERSION: 'v5.1.3'
COMPOSER_VERSION: '2.7.7'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_ACCESSTOKEN }}
CODING_PASSWORD: ${{ secrets.CODING_PASSWORD }}
jobs:
build:
name: Build PHP ${{ matrix.php-version }} Alpine ${{ matrix.alpine-version }} ${{ matrix.spec }}
Expand Down Expand Up @@ -59,8 +60,9 @@ jobs:
if: ${{ github.ref == 'refs/heads/build' }}
run: ./.github/workflows/push.sh
- name: Push the latest images
if: ${{ github.ref == 'refs/heads/build' && matrix.php-version == '8.2' && matrix.alpine-version == '3.18' && matrix.spec == '' }}
if: ${{ github.ref == 'refs/heads/build' && matrix.php-version == '8.3' && matrix.alpine-version == '3.19' && matrix.spec == '' }}
run: |
docker push hyperf/hyperf:latest
docker push ghcr.io/hyperf/hyperf-docker/hyperf:latest
docker push hyperf-cloud-docker.pkg.coding.net/hyperf/hyperf/hyperf:latest
5 changes: 3 additions & 2 deletions .github/workflows/build-swow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ name: Build Swow
on: [ push ]
env:
ENGINE: 'swow'
SW_VERSION: 'v1.5.0'
COMPOSER_VERSION: '2.7.6'
SW_VERSION: 'v1.5.2'
COMPOSER_VERSION: '2.7.7'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_ACCESSTOKEN }}
CODING_PASSWORD: ${{ secrets.CODING_PASSWORD }}
jobs:
build:
name: Build PHP ${{ matrix.php-version }} Alpine ${{ matrix.alpine-version }} ${{ matrix.spec }}
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Login
docker login --username limingxinleo -p $DOCKERHUB_TOKEN
docker login ghcr.io --username limingxinleo -p $GITHUB_TOKEN
docker login -u hyperf-1718463997529 -p $CODING_PASSWORD hyperf-cloud-docker.pkg.coding.net

# Push to DockerHub
docker tag hyperf/hyperf:${PHP_VERSION}-alpine-v${ALPINE_VERSION}-${ENGINE}${SPEC}-${SW_VERSION} hyperf/hyperf:${PHP_VERSION}-alpine-v${ALPINE_VERSION}-${ENGINE}${SPEC}-${SW_VERSION%\.*}
Expand All @@ -26,3 +27,15 @@ docker push ghcr.io/hyperf/hyperf-docker/hyperf:${PHP_VERSION}-alpine-v${ALPINE_
docker push ghcr.io/hyperf/hyperf-docker/hyperf:${PHP_VERSION}-alpine-v${ALPINE_VERSION}-${ENGINE}${SPEC}-${SW_VERSION%\.*}
docker push ghcr.io/hyperf/hyperf-docker/hyperf:${PHP_VERSION}-alpine-v${ALPINE_VERSION}-${ENGINE}${SPEC}-${SW_VERSION%%\.*}
docker push ghcr.io/hyperf/hyperf-docker/hyperf:${PHP_VERSION}-alpine-v${ALPINE_VERSION}-${ENGINE}${SPEC}

# Push to Coding
docker tag hyperf/hyperf:${PHP_VERSION}-alpine-v${ALPINE_VERSION}-${ENGINE}${SPEC}-${SW_VERSION} hyperf-cloud-docker.pkg.coding.net/hyperf/hyperf/hyperf:${PHP_VERSION}-alpine-v${ALPINE_VERSION}-${ENGINE}${SPEC}-${SW_VERSION}
docker tag hyperf/hyperf:${PHP_VERSION}-alpine-v${ALPINE_VERSION}-${ENGINE}${SPEC}-${SW_VERSION} hyperf-cloud-docker.pkg.coding.net/hyperf/hyperf/hyperf:${PHP_VERSION}-alpine-v${ALPINE_VERSION}-${ENGINE}${SPEC}-${SW_VERSION%\.*}
docker tag hyperf/hyperf:${PHP_VERSION}-alpine-v${ALPINE_VERSION}-${ENGINE}${SPEC}-${SW_VERSION} hyperf-cloud-docker.pkg.coding.net/hyperf/hyperf/hyperf:${PHP_VERSION}-alpine-v${ALPINE_VERSION}-${ENGINE}${SPEC}-${SW_VERSION%%\.*}
docker tag hyperf/hyperf:${PHP_VERSION}-alpine-v${ALPINE_VERSION}-${ENGINE}${SPEC}-${SW_VERSION} hyperf-cloud-docker.pkg.coding.net/hyperf/hyperf/hyperf:${PHP_VERSION}-alpine-v${ALPINE_VERSION}-${ENGINE}${SPEC}
docker tag hyperf/hyperf:${PHP_VERSION}-alpine-v${ALPINE_VERSION}-${ENGINE}${SPEC}-${SW_VERSION} hyperf-cloud-docker.pkg.coding.net/hyperf/hyperf/hyperf:latest

docker push hyperf-cloud-docker.pkg.coding.net/hyperf/hyperf/hyperf:${PHP_VERSION}-alpine-v${ALPINE_VERSION}-${ENGINE}${SPEC}-${SW_VERSION}
docker push hyperf-cloud-docker.pkg.coding.net/hyperf/hyperf/hyperf:${PHP_VERSION}-alpine-v${ALPINE_VERSION}-${ENGINE}${SPEC}-${SW_VERSION%\.*}
docker push hyperf-cloud-docker.pkg.coding.net/hyperf/hyperf/hyperf:${PHP_VERSION}-alpine-v${ALPINE_VERSION}-${ENGINE}${SPEC}-${SW_VERSION%%\.*}
docker push hyperf-cloud-docker.pkg.coding.net/hyperf/hyperf/hyperf:${PHP_VERSION}-alpine-v${ALPINE_VERSION}-${ENGINE}${SPEC}

0 comments on commit 211a21c

Please sign in to comment.