-
Notifications
You must be signed in to change notification settings - Fork 2
Enable cron [ci patch inc] #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
c8cc1d4
0263a0f
4332e0f
1fb31f4
ab61c01
bd76dba
469c3bb
2c39729
edddda7
3eaffcf
201c971
96292ba
afad169
1632929
1ee0844
6985988
e0749dc
b148dd8
c3378c2
7bed8d6
08c5592
6313619
4ebf92b
4f20a4c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,102 @@ | ||
| name: HyperCPU CI/CD Pipeline (update Docker images) | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: "0 0 */7 * *" | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| name: "Update ${{ matrix.config.name }} Docker image" | ||
| strategy: | ||
| matrix: | ||
| config: | ||
| - tag: fedora | ||
| name: Fedora | ||
| - tag: debian-stable | ||
| name: Debian Stable | ||
| - tag: debian-unstable | ||
| name: Debian Unstable | ||
| - tag: archlinux | ||
| name: Arch Linux | ||
| - tag: gentoo-glibc | ||
| name: Gentoo GLibc | ||
| - tag: alpine | ||
| name: Alpine | ||
| - tag: ubuntu | ||
| name: Ubuntu | ||
|
|
||
| steps: | ||
| - name: Install Docker Buildx | ||
| uses: docker/setup-buildx-action@v3 | ||
|
|
||
| - name: Login to DockerHub | ||
| uses: docker/login-action@v3 | ||
Check warningCode scanning / CodeQL Unpinned tag for a non-immutable Action in workflow Medium
Unpinned 3rd party Action 'HyperCPU CI/CD Pipeline (update Docker images)' step
Uses Step Error loading related location Loading |
||
| with: | ||
| username: hyperwin | ||
| password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
|
|
||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 2 | ||
| submodules: true | ||
|
|
||
| - name: Build and push | ||
| uses: docker/build-push-action@v6 | ||
Check warningCode scanning / CodeQL Unpinned tag for a non-immutable Action in workflow Medium
Unpinned 3rd party Action 'HyperCPU CI/CD Pipeline (update Docker images)' step
Uses Step Error loading related location Loading |
||
| with: | ||
| context: "{{ defaultContext }}:docker/${{ matrix.config.tag }}" | ||
| push: true | ||
| tags: hyperwin/hcpu-ci:${{ matrix.config.tag }} | ||
|
|
||
| build-gentoo-musl-stage1: | ||
| runs-on: ubuntu-latest | ||
| name: "Update Gentoo Musl Docker image - stage 1" | ||
| steps: | ||
| - name: Login to DockerHub | ||
| uses: docker/login-action@v3 | ||
Check warningCode scanning / CodeQL Unpinned tag for a non-immutable Action in workflow Medium
Unpinned 3rd party Action 'HyperCPU CI/CD Pipeline (update Docker images)' step
Uses Step Error loading related location Loading |
||
| with: | ||
| username: hyperwin | ||
| password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
|
|
||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 2 | ||
| submodules: true | ||
|
|
||
| - name: Build and push | ||
| uses: docker/build-push-action@v6 | ||
Check warningCode scanning / CodeQL Unpinned tag for a non-immutable Action in workflow Medium
Unpinned 3rd party Action 'HyperCPU CI/CD Pipeline (update Docker images)' step
Uses Step Error loading related location Loading |
||
| with: | ||
| context: "{{ defaultContext }}:docker/gentoo-musl/stage1" | ||
| push: true | ||
| tags: hyperwin/hcpu-ci:gentoo-musl-build | ||
|
|
||
| build-gentoo-musl-stage2: | ||
| runs-on: ubuntu-latest | ||
| name: "Update Gentoo Musl Docker image - stage 2" | ||
| needs: build-gentoo-musl-stage1 | ||
| steps: | ||
| - name: Login to DockerHub | ||
| uses: docker/login-action@v3 | ||
Check warningCode scanning / CodeQL Unpinned tag for a non-immutable Action in workflow Medium
Unpinned 3rd party Action 'HyperCPU CI/CD Pipeline (update Docker images)' step
Uses Step Error loading related location Loading |
||
| with: | ||
| username: hyperwin | ||
| password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
|
|
||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 2 | ||
| submodules: true | ||
|
|
||
| - name: Build and push | ||
| uses: docker/build-push-action@v6 | ||
Check warningCode scanning / CodeQL Unpinned tag for a non-immutable Action in workflow Medium
Unpinned 3rd party Action 'HyperCPU CI/CD Pipeline (update Docker images)' step
Uses Step Error loading related location Loading |
||
| with: | ||
| context: "{{ defaultContext }}:docker/gentoo-musl/stage2" | ||
| push: true | ||
| tags: hyperwin/hcpu-ci:gentoo-musl | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| FROM alpine:latest | ||
|
|
||
| RUN apk update && \ | ||
| apk add clang gcc git cmake make gtest-dev gtest-src re2 re2-dev fmt fmt-dev nodejs grep |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| FROM archlinux:latest | ||
|
|
||
| RUN pacman -Syu cmake git clang gcc gtest re2 fmt base-devel nodejs --noconfirm |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| FROM debian | ||
|
|
||
| RUN apt update && \ | ||
| apt install git cmake clang libre2-9 libre2-dev libfmt9 libfmt-dev libgtest-dev googletest gnu-which nodejs -y |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| FROM debian:unstable | ||
|
|
||
| RUN apt update && \ | ||
| apt install git cmake clang libre2-11 libre2-dev libfmt10 libfmt-dev libgtest-dev googletest gnu-which nodejs -y |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| FROM fedora | ||
|
|
||
| RUN dnf update -y && \ | ||
| dnf install clang clang-libs gcc gtest gtest-devel fmt fmt-devel re2 re2-devel gtest gtest-devel git cmake libasan which nodejs -y | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| FROM gentoo/stage3:systemd | ||
|
|
||
| RUN emerge --sync > /dev/null && \ | ||
| getuto && \ | ||
| emerge llvm-core/clang cmake dev-vcs/git re2 libfmt gtest which nodejs --getbinpkg -j2 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| FROM gentoo/stage3:systemd | ||
|
|
||
| RUN emerge --sync | ||
| RUN getuto | ||
| RUN emerge llvm-core/clang cmake gtest re2 libfmt dev-vcs/git --getbinpkg |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| FROM gentoo/stage3:musl | ||
|
|
||
| RUN emerge --sync > /dev/null && \ | ||
| getuto && \ | ||
| sed -i 's/^MAKEOPTS=".*"/MAKEOPTS="& -j8"/' /etc/portage/make.conf && \ | ||
| emerge llvm-core/llvm cmake gtest re2 libfmt dev-vcs/git --getbinpkg |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| FROM hyperwin/hcpu-ci:gentoo-musl-build | ||
|
|
||
| RUN emerge llvm-core/clang --getbinpkg |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| FROM ubuntu:latest | ||
|
|
||
| RUN apt update && \ | ||
| apt install git cmake clang libre2-10 libre2-dev libfmt9 libfmt-dev libgtest-dev googletest gnu-which nodejs -y |
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action in workflow Medium