From 9d71ea476bcd0ef1ab1cb0dfd2b5349fea226fab Mon Sep 17 00:00:00 2001 From: Daniel Leite Date: Sat, 26 Nov 2022 15:10:07 +0000 Subject: [PATCH 1/4] centos7 ci container --- .github/workflows/build_ci.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/build_ci.yaml diff --git a/.github/workflows/build_ci.yaml b/.github/workflows/build_ci.yaml new file mode 100644 index 00000000000..043a2570aaf --- /dev/null +++ b/.github/workflows/build_ci.yaml @@ -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 \ No newline at end of file From 192e40f8cf64b38c8380ca034b49e08df0089372 Mon Sep 17 00:00:00 2001 From: Daniel Leite Date: Wed, 30 Nov 2022 17:21:01 +0000 Subject: [PATCH 2/4] publishing container to ghcr --- .github/workflows/build_ci.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_ci.yaml b/.github/workflows/build_ci.yaml index 043a2570aaf..18c0edbdb63 100644 --- a/.github/workflows/build_ci.yaml +++ b/.github/workflows/build_ci.yaml @@ -7,14 +7,15 @@ on: - 'ci/**' jobs: - publish-to-docker: - name: Publish to Docker + publish-container: + name: Publish Container runs-on: ubuntu-latest steps: - - name: Login to Docker Hub + - name: Login to GitHub Container Registry uses: docker/login-action@v2 with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Publish to Docker Hub + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Publish Container run: ./ci/publish.sh \ No newline at end of file From f91a4f8ef20486968f1aae375db1e39ac99ee308 Mon Sep 17 00:00:00 2001 From: Daniel Leite Date: Wed, 30 Nov 2022 18:20:29 +0000 Subject: [PATCH 3/4] renaming and workflow_dispatch --- .github/workflows/build_ci.yaml | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 .github/workflows/build_ci.yaml diff --git a/.github/workflows/build_ci.yaml b/.github/workflows/build_ci.yaml deleted file mode 100644 index 18c0edbdb63..00000000000 --- a/.github/workflows/build_ci.yaml +++ /dev/null @@ -1,21 +0,0 @@ -name: build_ci -on: - 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 From 070b486ff40d90a1dcbb4f830b591663600846e0 Mon Sep 17 00:00:00 2001 From: Daniel Leite Date: Wed, 30 Nov 2022 18:37:08 +0000 Subject: [PATCH 4/4] pulling repo --- .github/workflows/publish_container_ci.yaml | 10 +++++++++- ci/rome-ci-x86-64-centos7/Dockerfile | 5 ++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_container_ci.yaml b/.github/workflows/publish_container_ci.yaml index c2f6c86ef56..75f8e2d4907 100644 --- a/.github/workflows/publish_container_ci.yaml +++ b/.github/workflows/publish_container_ci.yaml @@ -18,5 +18,13 @@ jobs: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Checkout PR Branch + uses: actions/checkout@v3 + with: + submodules: false + - name: List ci + working-directory: ci + run: ls -la - name: Publish Container - run: ./ci/publish.sh \ No newline at end of file + working-directory: ci + run: ./publish.sh \ No newline at end of file diff --git a/ci/rome-ci-x86-64-centos7/Dockerfile b/ci/rome-ci-x86-64-centos7/Dockerfile index f010b43bbf4..86c513bb900 100644 --- a/ci/rome-ci-x86-64-centos7/Dockerfile +++ b/ci/rome-ci-x86-64-centos7/Dockerfile @@ -5,4 +5,7 @@ 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 +RUN cargo install cargo-audit +RUN cargo install cargo-nextest +RUN cargo install just +CMD ["/bin/bash", "--login"] \ No newline at end of file