Skip to content

Commit

Permalink
Merge branch 'master' of github.com:tonyzzp/webrtc-demo
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyzzp committed Jun 11, 2024
2 parents e52926f + 2851d11 commit 89a0422
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,26 @@ jobs:
with:
username: tonyzzp
password: ${{secrets.DOCKER_USER_PASSWORD}}

- name: docker build
run: docker build -t ${{vars.DOCKER_IMAGE_NAME}} .

- name: docker push
run: docker push ${{vars.DOCKER_IMAGE_NAME}}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: |
${{vars.DOCKER_IMAGE_NAME}}
platforms: linux/amd64,linux/arm64

- name: restart server
run: curl "http://a.veikr.com:8000/action/restartserver?x-token=${{secrets.SERVER_TOOLS_TOKEN}}&file=tonyzzp_webrtc-demo"

0 comments on commit 89a0422

Please sign in to comment.