Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/build_ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: build_ci
on:
push:
branches:
- main
paths:
- 'ci/**'

jobs:
publish-to-docker:
name: Publish to Docker
runs-on: ubuntu-latest
steps:
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Publish to Docker Hub
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 rome-ci-x86-64-centos7:latest
docker push rome-ci-x86-64-centos7:latest
cd ..
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: should we move these files under a scripts/ folder instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hum... I prefer to keep everything under ci at the moment. Because we will have other containers in the future.

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