Skip to content

Commit

Permalink
chore(ci): centos7 ci container (#3866)
Browse files Browse the repository at this point in the history
* centos7 ci container
  • Loading branch information
xunilrj authored Nov 30, 2022
1 parent 519df0b commit 67a1d33
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/publish_container_ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: publish_container_ci
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'ci/**'

jobs:
publish-container:
name: Publish Container
runs-on: ubuntu-latest
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Publish Container
run: ./ci/publish.sh
1 change: 1 addition & 0 deletions ci/publish.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
. ./publish.sh
4 changes: 4 additions & 0 deletions ci/publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cd rome-ci-x86-64-centos7
docker build . --tag ghcr.io/rome/rome-ci-x86-64-centos7:latest
docker push ghcr.io/rome/rome-ci-x86-64-centos7:latest
cd ..
8 changes: 8 additions & 0 deletions ci/rome-ci-x86-64-centos7/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM centos:centos7
SHELL ["/bin/bash", "--login", "-c"]
RUN yum update -y
RUN yum install gcc gcc-c++ make openssl-devel git -y
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
RUN nvm install 14
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
RUN cargo install cargo-audit

0 comments on commit 67a1d33

Please sign in to comment.