File tree Expand file tree Collapse file tree 2 files changed +29
-7
lines changed Expand file tree Collapse file tree 2 files changed +29
-7
lines changed Original file line number Diff line number Diff line change
1
+ name : publish-ci-docker-image
2
+ on :
3
+ push :
4
+ branches : [ main ]
5
+ jobs :
6
+ publish-ci-docker-image :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v2
10
+ - name : Login to GitHub Container Registry
11
+ uses : docker/login-action@v1
12
+ with :
13
+ registry : ghcr.io
14
+ username : ${{ github.actor }}
15
+ password : ${{ secrets.GITHUB_TOKEN }}
16
+ - name : Build CI Docker image
17
+ run : |
18
+ docker build . -f Dockerfile.ci --tag ghcr.io/levkk/pgcat-ci:latest
19
+ docker run ghcr.io/levkk/pgcat-ci:latest
20
+ docker push ghcr.io/levkk/pgcat-ci:latest
Original file line number Diff line number Diff line change 1
1
FROM cimg/rust:1.62.0
2
2
RUN sudo apt-get update && \
3
- sudo apt-get install -y psmisc postgresql-contrib-12 postgresql-client-12 ruby ruby-dev libpq-dev python3 python3-pip lcov llvm-11 && \
4
- sudo apt-get upgrade curl
5
- RUN cargo install cargo-binutils rustfilt && \
6
- rustup component add llvm-tools-preview
7
- RUN pip3 install psycopg2 && \
8
- sudo gem install bundler
9
- RUN wget -O toxiproxy-2.4.0.deb https://github.com/Shopify/toxiproxy/releases/download/v2.4.0/toxiproxy_2.4.0_linux_$(dpkg --print-architecture).deb && \
3
+ sudo apt-get install -y \
4
+ postgresql-contrib-12 postgresql-client-12 libpq-dev \
5
+ ruby ruby-dev python3 python3-pip \
6
+ lcov llvm-11 iproute2 && \
7
+ sudo apt-get upgrade curl && \
8
+ cargo install cargo-binutils rustfilt && \
9
+ rustup component add llvm-tools-preview && \
10
+ pip3 install psycopg2 && sudo gem install bundler && \
11
+ wget -O toxiproxy-2.4.0.deb https://github.com/Shopify/toxiproxy/releases/download/v2.4.0/toxiproxy_2.4.0_linux_$(dpkg --print-architecture).deb && \
10
12
sudo dpkg -i toxiproxy-2.4.0.deb
You can’t perform that action at this time.
0 commit comments