Skip to content
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

fix: update workflow based on org template #5

Merged
merged 3 commits into from
Sep 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,27 @@
name: ci
name: Infralovers Container Build

on:
push:
branches: [ 'main' ]
pull_request:
branches:
- main
branches: [ 'main' ]

jobs:

prebuild:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.semrel.outputs.version }}
steps:
- uses: actions/checkout@v3
- name: Check pre-commit presence
id: precommit_exists
uses: andstor/file-existence-action@v1
with:
files: ".pre-commit-config.yaml"
- uses: actions/setup-python@v3
if: steps.precommit_exists.outputs.files_exists == 'true'
- uses: pre-commit/action@v3.0.0
if: steps.precommit_exists.outputs.files_exists == 'true'
- uses: go-semantic-release/action@v1
if: github.event_name != 'pull_request'
id: semrel
Expand Down
15 changes: 15 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/hadolint/hadolint
rev: master
hooks:
- id: hadolint-docker
stages: [commit]
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@
#### Bug Fixes

* update of changelog (13e944c3)

8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@

ARG SELENIUM_BASE
# hadolint ignore=DL3006
FROM $SELENIUM_BASE

USER root

# hadolint ignore=DL3013,DL3008
RUN apt-get update -q \
&& apt-get install -y python3-pip \
&& pip3 install virtualenv behave \
&& apt-get install --no-install-recommends -y python3-pip \
&& pip3 install --no-cache-dir virtualenv behave \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

USER seluser
USER seluser