diff --git a/.github/workflows/publish_container_ci.yaml b/.github/workflows/publish_container_ci.yaml new file mode 100644 index 00000000000..c2f6c86ef56 --- /dev/null +++ b/.github/workflows/publish_container_ci.yaml @@ -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 \ No newline at end of file diff --git a/ci/publish.ps1 b/ci/publish.ps1 new file mode 100644 index 00000000000..5a053b3d764 --- /dev/null +++ b/ci/publish.ps1 @@ -0,0 +1 @@ +. ./publish.sh \ No newline at end of file diff --git a/ci/publish.sh b/ci/publish.sh new file mode 100755 index 00000000000..1490ac0083c --- /dev/null +++ b/ci/publish.sh @@ -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 .. \ No newline at end of file diff --git a/ci/rome-ci-x86-64-centos7/Dockerfile b/ci/rome-ci-x86-64-centos7/Dockerfile new file mode 100644 index 00000000000..f010b43bbf4 --- /dev/null +++ b/ci/rome-ci-x86-64-centos7/Dockerfile @@ -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 \ No newline at end of file