Skip to content

Commit

Permalink
Change Centos7 yum config (#148)
Browse files Browse the repository at this point in the history
* Update centos-7.Dockerfile

* Update centos-7.Dockerfile

* Update centos-7.Dockerfile

* Update centos-7.Dockerfile

* Update centos-7.Dockerfile

* Update centos-7.Dockerfile

* Update centos-7.Dockerfile

* Update centos-7.Dockerfile

* Update centos-8.Dockerfile

* Update centos-7.Dockerfile

* Update centos-8.Dockerfile

* Simplified editing method

* update actions version
  • Loading branch information
Shinji-IkariG authored Aug 30, 2024
1 parent 17b4103 commit 9c4c348
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ jobs:
container:
image: vesoft/third-party-build:${{ matrix.os }}
steps:
- uses: webiny/action-post-run@3.0.0
- uses: webiny/action-post-run@3.1.0
with:
run: find . -mindepth 1 -delete
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up environment
if: matrix.compiler != ''
run: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ jobs:
id: vars
run: |
echo "TAG=$(echo ${{ matrix.os }} | tr -d '-')" >> $GITHUB_OUTPUT
- uses: actions/checkout@v3
- uses: docker/login-action@v2
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: docker/build-push-action@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v6
with:
context: .
file: ./docker/buildx/${{ matrix.os }}.Dockerfile
Expand Down
6 changes: 4 additions & 2 deletions docker/buildx/centos-7.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
FROM centos:7
SHELL ["/bin/bash", "-c"]
ARG GOLANG_VERSION=1.21.6
RUN yum install -y epel-release && yum update -y \
&& yum install -y make \
RUN sed -i 's/^mirrorlist=/#mirrorlist=/g' /etc/yum.repos.d/CentOS-Base.repo && \
sed -i "s|^#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-Base.repo && \
yum install -y epel-release && yum update -y && \
yum install -y make \
git \
m4 \
curl \
Expand Down

0 comments on commit 9c4c348

Please sign in to comment.