Skip to content

Commit

Permalink
Some improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes committed Dec 13, 2024
1 parent ce2fbdd commit f77aca3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/centos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ on:
release:
types: [ created ]

env:
IS_RELEASE: ${{ github.event_name == 'workflow_dispatch' }}

jobs:

build_sirius:
Expand All @@ -32,7 +29,7 @@ jobs:
docker cp $container_id:/centos-7_sirius-solver.zip /tmp
- name: Publish assets
if: ${{ env.IS_RELEASE == 'true' }}
if: ${{ github.event_name == 'release' && github.event.action == 'created' }}
env:
GITHUB_TOKEN: ${{ github.token }}
tag: ${{ github.event.inputs.release_tag }}
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo &&\
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo &&\
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo &&\
yum install -y epel-release &&\
yum install -y git redhat-lsb-core make wget centos-release-scl scl-utils python3 &&\
yum install -y git redhat-lsb-core make wget centos-release-scl scl-utils &&\
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo &&\
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo &&\
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
Expand Down

0 comments on commit f77aca3

Please sign in to comment.