Skip to content

Commit

Permalink
push docker image to docker hub
Browse files Browse the repository at this point in the history
  • Loading branch information
zouxianyu committed Jun 12, 2023
1 parent 44f4640 commit 33cdf6e
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,41 @@ jobs:
with:
draft: true
files: query-pdb-server-windows-${{matrix.arch}}.zip

build-docker:
strategy:
matrix:
pdb-source:
- :
- name: microsoft
- url: https://msdl.microsoft.com/download/symbols/
- :
- name: mirror
- url: http://msdl.szdyg.cn/download/symbols/

runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3

- name: Add PDB Source to supervisord.conf
run: |
sed -i 's/\(command=.*\)$/\1 --server=${{matrix.pdb-source.url}}/' supervisord.conf
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{secrets.DOCKERHUB_USERNAME}}
password: ${{secrets.DOCKERHUB_TOKEN}}

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

- name: Build Docker and Push
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile
push: true
tags: |
${{secrets.DOCKERHUB_USERNAME}}/query-pdb-server:${{matrix.pdb-source.name}}-latest

0 comments on commit 33cdf6e

Please sign in to comment.