Skip to content

Commit

Permalink
Do not install ci scripts into bin/
Browse files Browse the repository at this point in the history
  • Loading branch information
felixsch committed Feb 5, 2024
1 parent ebed7b5 commit c3a4b4c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 36 deletions.
44 changes: 20 additions & 24 deletions .github/workflows/features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,39 +10,35 @@ jobs:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: /usr/src/rmt-server
container:
image: registry.opensuse.org/systemsmanagement/scc/containers/15.5/rmt-ci-container:latest
options: --user root
services:
mysql:
image: mysql:5.7
env:
MYSQL_DATABASE: rmt_features
MYSQL_USER: rmt
MYSQL_PASSWORD: rmt
MYSQL_ROOT_PASSWORD: root
ports:
- 3306:3306
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=3
# services:
# mysql:
# image: mysql:5.7
# env:
# MYSQL_DATABASE: rmt_features
# MYSQL_USER: rmt
# MYSQL_PASSWORD: rmt
# MYSQL_ROOT_PASSWORD: root
# ports:
# - 3306:3306
# options: >-
# --health-cmd="mysqladmin ping"
# --health-interval=10s
# --health-timeout=5s
# --health-retries=3
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: build rpm
run: |
rmt-build-rpm
- name: configure rmt
- name: copy checkout to /usr/src/rmt-server
run: |
rmt-configure
cp -r $GITHUB_WORKSPACE/* /usr/src/rmt-server
ls -la /usr/src/rmt-server
- name: run feature tests
- name: build rpm
run: |
rmt-run-feature-tests
bash ci/rmt-build-rpm
12 changes: 0 additions & 12 deletions ci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,8 @@ RUN update-alternatives --install /usr/bin/bundle bundle /usr/bin/bundle.ruby2.5
update-alternatives --install /usr/bin/bundler bundler /usr/bin/bundler.ruby2.5 5

VOLUME /usr/src/rmt-server
VOLUME /usr/

ARG SCC_USERNAME
ARG SCC_PASSWORD

# Prepare ruby environment
ENV NOKOGIRI_USE_SYSTEM_LIBRARIES 1

# Add rmt ci/development scripts
RUN mkdir -p /usr/src/rmt-server /usr/local/bin

COPY rmt-build-rpm /usr/local/bin/
COPY rmt-configure /usr/local/bin/
COPY rmt-console /usr/local/bin/
COPY rmt-run-feature-tests /usr/local/bin/

WORKDIR /usr/src/rmt-server

0 comments on commit c3a4b4c

Please sign in to comment.