Skip to content

Commit

Permalink
Use docker on github acions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackarain committed Nov 21, 2023
1 parent 66570eb commit 0569d63
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,24 @@ name: Build
on: [push]

jobs:
Docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Build proxy
run: |
docker build . -t proxy:v1
docker create --name ps proxy:v1
mkdir -p build/docker
docker cp ps:/usr/local/bin/proxy_server build/docker
- name: Archive artifacts
uses: actions/upload-artifact@v3
with:
name: proxy_server-linux_musl_x64
path: build/docker/proxy_server

Linux:
runs-on: ubuntu-latest
steps:
Expand All @@ -23,7 +41,7 @@ jobs:
- name: Archive artifacts
uses: actions/upload-artifact@v3
with:
name: proxy_server-linux_x64
name: proxy_server-linux_glibc_x64
path: build/bin/proxy_server

Windows:
Expand Down

0 comments on commit 0569d63

Please sign in to comment.