Skip to content

Commit

Permalink
Add pre-commit workflow, remove gitlab-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
d-mo committed Apr 22, 2024
1 parent 4cb8188 commit 2ba4a2e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 230 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ on:
branches: [ "main" ]

jobs:
pre-commit:
runs-on: self-hosted
steps:
- name: Run pre-commit
run: |
pip install pre-commit
pre-commit install-hooks
pre-commit run -a --color=always --show-diff-on-failure
build_operator_image:
runs-on: self-hosted
steps:
Expand All @@ -25,7 +33,7 @@ jobs:
if [[ $GITHUB_REF == 'refs/heads/main' ]]; then
TAG=latest
else
TAG=$(echo ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}| tr / -)
TAG=$(echo ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/tags/}}| tr / -)
fi
docker build . --file Dockerfile --tag ghcr.io/dell/remote-development-operator:$TAG
docker push ghcr.io/dell/remote-development-operator:$TAG
Expand All @@ -46,7 +54,7 @@ jobs:
if [[ $GITHUB_REF == 'refs/heads/main' ]]; then
TAG=latest
else
TAG=$(echo ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}| tr / -)
TAG=$(echo ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/tags/}}| tr / -)
fi
docker build . --file Dockerfile --tag ghcr.io/dell/remote-development-operator/devenv:$TAG
docker push ghcr.io/dell/remote-development-operator/devenv:$TAG
227 changes: 0 additions & 227 deletions .gitlab-ci.yml

This file was deleted.

2 changes: 1 addition & 1 deletion operator/chart/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
image:
repository: 702886132326.dkr.ecr.eu-west-1.amazonaws.com/eo-images-gitlab/remote-development-operator
repository: ghcr.io/dell/remote-development-operator
tag: main

0 comments on commit 2ba4a2e

Please sign in to comment.