Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

Commit 67a1d33

Browse files
authored
chore(ci): centos7 ci container (#3866)
* centos7 ci container
1 parent 519df0b commit 67a1d33

File tree

4 files changed

+35
-0
lines changed

4 files changed

+35
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: publish_container_ci
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'ci/**'
9+
10+
jobs:
11+
publish-container:
12+
name: Publish Container
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Login to GitHub Container Registry
16+
uses: docker/login-action@v2
17+
with:
18+
registry: ghcr.io
19+
username: ${{ github.actor }}
20+
password: ${{ secrets.GITHUB_TOKEN }}
21+
- name: Publish Container
22+
run: ./ci/publish.sh

ci/publish.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
. ./publish.sh

ci/publish.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
cd rome-ci-x86-64-centos7
2+
docker build . --tag ghcr.io/rome/rome-ci-x86-64-centos7:latest
3+
docker push ghcr.io/rome/rome-ci-x86-64-centos7:latest
4+
cd ..
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM centos:centos7
2+
SHELL ["/bin/bash", "--login", "-c"]
3+
RUN yum update -y
4+
RUN yum install gcc gcc-c++ make openssl-devel git -y
5+
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
6+
RUN nvm install 14
7+
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
8+
RUN cargo install cargo-audit

0 commit comments

Comments
 (0)