mirror of https://github.com/sobolevn/git-secret
Adds release-ci script to test installation (#664)
* Adds release-ci script to test installation * Fixes CI * Fixes CI * Renames some variables to follow the same SECRETS_ conventionpull/667/head
parent
fcf25ff546
commit
19941f91f4
@ -0,0 +1,15 @@
|
|||||||
|
FROM centos:8
|
||||||
|
|
||||||
|
LABEL maintainer="mail@sobolevn.me"
|
||||||
|
LABEL vendor="git-secret team"
|
||||||
|
|
||||||
|
RUN dnf -y update \
|
||||||
|
&& dnf install -y \
|
||||||
|
# Required for our install script:
|
||||||
|
wget \
|
||||||
|
sudo \
|
||||||
|
&& dnf clean all \
|
||||||
|
&& rm -rf /var/cache/yum \
|
||||||
|
&& adduser --password='' nonroot \
|
||||||
|
&& echo 'nonroot ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
||||||
|
USER nonroot
|
@ -0,0 +1,23 @@
|
|||||||
|
FROM debian:10.9-slim
|
||||||
|
|
||||||
|
LABEL maintainer="mail@sobolevn.me"
|
||||||
|
LABEL vendor="git-secret team"
|
||||||
|
|
||||||
|
ENV DEBIAN_FRONTEND='noninteractive'
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install --no-install-recommends -y \
|
||||||
|
# Required to work with https-based repos and custom signed packages:
|
||||||
|
apt-transport-https \
|
||||||
|
ca-certificates \
|
||||||
|
# Required for our install script:
|
||||||
|
gnupg \
|
||||||
|
sudo \
|
||||||
|
wget \
|
||||||
|
# Cleaning cache:
|
||||||
|
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
|
||||||
|
&& apt-get clean -y && rm -rf /var/lib/apt/lists/* \
|
||||||
|
&& adduser --disabled-password nonroot \
|
||||||
|
&& adduser nonroot sudo \
|
||||||
|
&& echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
||||||
|
USER nonroot
|
@ -0,0 +1,15 @@
|
|||||||
|
FROM fedora:34
|
||||||
|
|
||||||
|
LABEL maintainer="mail@sobolevn.me"
|
||||||
|
LABEL vendor="git-secret team"
|
||||||
|
|
||||||
|
RUN dnf -y update \
|
||||||
|
&& dnf install -y \
|
||||||
|
# Required for our install script:
|
||||||
|
wget \
|
||||||
|
sudo \
|
||||||
|
&& dnf clean all \
|
||||||
|
&& rm -rf /var/cache/yum \
|
||||||
|
&& adduser --password='' nonroot \
|
||||||
|
&& echo 'nonroot ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
||||||
|
USER nonroot
|
@ -0,0 +1,23 @@
|
|||||||
|
FROM debian:10.9-slim
|
||||||
|
|
||||||
|
LABEL maintainer="mail@sobolevn.me"
|
||||||
|
LABEL vendor="git-secret team"
|
||||||
|
|
||||||
|
ENV DEBIAN_FRONTEND='noninteractive'
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install --no-install-recommends -y \
|
||||||
|
# Required to work with https-based repos and custom signed packages:
|
||||||
|
apt-transport-https \
|
||||||
|
ca-certificates \
|
||||||
|
# Required for our install script:
|
||||||
|
gnupg \
|
||||||
|
sudo \
|
||||||
|
wget \
|
||||||
|
# Cleaning cache:
|
||||||
|
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
|
||||||
|
&& apt-get clean -y && rm -rf /var/lib/apt/lists/* \
|
||||||
|
&& adduser --disabled-password nonroot \
|
||||||
|
&& adduser nonroot sudo \
|
||||||
|
&& echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
||||||
|
USER nonroot
|
@ -1,20 +0,0 @@
|
|||||||
name: misspell
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
schedule:
|
|
||||||
- cron: '0 0 * * *'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: sobolevn/misspell-fixer-action@0.1.0
|
|
||||||
- uses: peter-evans/create-pull-request@v3
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
commit-message: 'Fixes by misspell-fixer'
|
|
||||||
title: 'Typos fix by misspell-fixer'
|
|
@ -0,0 +1,25 @@
|
|||||||
|
name: installation-
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * *'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- release-type: deb
|
||||||
|
release-env: [debian, ubuntu]
|
||||||
|
- release-type: rpm
|
||||||
|
release-env: [centos, fedora]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Run checks
|
||||||
|
run: |
|
||||||
|
SECRETS_RELEASE_ENV="${{ matrix.release-env }}" \
|
||||||
|
SECRETS_RELEASE_TYPE="${{ matrix.release-type }}" \
|
||||||
|
make release-ci
|
@ -0,0 +1,4 @@
|
|||||||
|
sudo sh -c "echo 'deb https://gitsecret.jfrog.io/artifactory/git-secret-deb git-secret main' >> /etc/apt/sources.list"
|
||||||
|
wget -qO - 'https://gitsecret.jfrog.io/artifactory/api/gpg/key/public' | sudo apt-key add -
|
||||||
|
sudo apt-get update && sudo apt-get install -y git-secret
|
||||||
|
git secret --version
|
@ -0,0 +1,4 @@
|
|||||||
|
wget https://raw.githubusercontent.com/sobolevn/git-secret/master/utils/rpm/git-secret.repo -O git-secret-rpm.repo
|
||||||
|
# Inspect what's inside! You can also enable `gpg` check on repo level.
|
||||||
|
sudo mv git-secret-rpm.repo /etc/yum.repos.d/
|
||||||
|
sudo yum install -y git-secret
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: post
|
layout: post
|
||||||
title: 'git-secret-add'
|
title: 'git-secret-add'
|
||||||
date: 2021-05-04 12:15:29 +0300
|
date: 2021-05-05 15:37:26 +0300
|
||||||
permalink: git-secret-add
|
permalink: git-secret-add
|
||||||
categories: command
|
categories: command
|
||||||
---
|
---
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: post
|
layout: post
|
||||||
title: 'git-secret-cat'
|
title: 'git-secret-cat'
|
||||||
date: 2021-05-04 12:15:29 +0300
|
date: 2021-05-05 15:37:26 +0300
|
||||||
permalink: git-secret-cat
|
permalink: git-secret-cat
|
||||||
categories: command
|
categories: command
|
||||||
---
|
---
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: post
|
layout: post
|
||||||
title: 'git-secret-changes'
|
title: 'git-secret-changes'
|
||||||
date: 2021-05-04 12:15:29 +0300
|
date: 2021-05-05 15:37:26 +0300
|
||||||
permalink: git-secret-changes
|
permalink: git-secret-changes
|
||||||
categories: command
|
categories: command
|
||||||
---
|
---
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: post
|
layout: post
|
||||||
title: 'git-secret-clean'
|
title: 'git-secret-clean'
|
||||||
date: 2021-05-04 12:15:29 +0300
|
date: 2021-05-05 15:37:26 +0300
|
||||||
permalink: git-secret-clean
|
permalink: git-secret-clean
|
||||||
categories: command
|
categories: command
|
||||||
---
|
---
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: post
|
layout: post
|
||||||
title: 'git-secret-hide'
|
title: 'git-secret-hide'
|
||||||
date: 2021-05-04 12:15:29 +0300
|
date: 2021-05-05 15:37:26 +0300
|
||||||
permalink: git-secret-hide
|
permalink: git-secret-hide
|
||||||
categories: command
|
categories: command
|
||||||
---
|
---
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: post
|
layout: post
|
||||||
title: 'git-secret-init'
|
title: 'git-secret-init'
|
||||||
date: 2021-05-04 12:15:29 +0300
|
date: 2021-05-05 15:37:26 +0300
|
||||||
permalink: git-secret-init
|
permalink: git-secret-init
|
||||||
categories: command
|
categories: command
|
||||||
---
|
---
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: post
|
layout: post
|
||||||
title: 'git-secret-killperson'
|
title: 'git-secret-killperson'
|
||||||
date: 2021-05-04 12:15:29 +0300
|
date: 2021-05-05 15:37:26 +0300
|
||||||
permalink: git-secret-killperson
|
permalink: git-secret-killperson
|
||||||
categories: command
|
categories: command
|
||||||
---
|
---
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: post
|
layout: post
|
||||||
title: 'git-secret-list'
|
title: 'git-secret-list'
|
||||||
date: 2021-05-04 12:15:29 +0300
|
date: 2021-05-05 15:37:26 +0300
|
||||||
permalink: git-secret-list
|
permalink: git-secret-list
|
||||||
categories: command
|
categories: command
|
||||||
---
|
---
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: post
|
layout: post
|
||||||
title: 'git-secret-remove'
|
title: 'git-secret-remove'
|
||||||
date: 2021-05-04 12:15:29 +0300
|
date: 2021-05-05 15:37:26 +0300
|
||||||
permalink: git-secret-remove
|
permalink: git-secret-remove
|
||||||
categories: command
|
categories: command
|
||||||
---
|
---
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: post
|
layout: post
|
||||||
title: 'git-secret-reveal'
|
title: 'git-secret-reveal'
|
||||||
date: 2021-05-04 12:15:29 +0300
|
date: 2021-05-05 15:37:26 +0300
|
||||||
permalink: git-secret-reveal
|
permalink: git-secret-reveal
|
||||||
categories: command
|
categories: command
|
||||||
---
|
---
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: post
|
layout: post
|
||||||
title: 'git-secret-tell'
|
title: 'git-secret-tell'
|
||||||
date: 2021-05-04 12:15:29 +0300
|
date: 2021-05-05 15:37:26 +0300
|
||||||
permalink: git-secret-tell
|
permalink: git-secret-tell
|
||||||
categories: command
|
categories: command
|
||||||
---
|
---
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: post
|
layout: post
|
||||||
title: 'git-secret-usage'
|
title: 'git-secret-usage'
|
||||||
date: 2021-05-04 12:15:29 +0300
|
date: 2021-05-05 15:37:26 +0300
|
||||||
permalink: git-secret-usage
|
permalink: git-secret-usage
|
||||||
categories: command
|
categories: command
|
||||||
---
|
---
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: post
|
layout: post
|
||||||
title: 'git-secret-whoknows'
|
title: 'git-secret-whoknows'
|
||||||
date: 2021-05-04 12:15:29 +0300
|
date: 2021-05-05 15:37:26 +0300
|
||||||
permalink: git-secret-whoknows
|
permalink: git-secret-whoknows
|
||||||
categories: command
|
categories: command
|
||||||
---
|
---
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: post
|
layout: post
|
||||||
title: 'git-secret'
|
title: 'git-secret'
|
||||||
date: 2021-05-04 12:15:29 +0300
|
date: 2021-05-05 15:37:26 +0300
|
||||||
permalink: git-secret
|
permalink: git-secret
|
||||||
categories: usage
|
categories: usage
|
||||||
---
|
---
|
@ -0,0 +1,5 @@
|
|||||||
|
sudo sh -c "echo 'deb https://gitsecret.jfrog.io/artifactory/git-secret-deb git-secret main' >> /etc/apt/sources.list"
|
||||||
|
wget -qO - 'https://gitsecret.jfrog.io/artifactory/api/gpg/key/public' | sudo apt-key add -
|
||||||
|
sudo apt-get update && sudo apt-get install -y git-secret
|
||||||
|
# Testing, that it worked:
|
||||||
|
git secret --version
|
@ -0,0 +1,6 @@
|
|||||||
|
wget https://raw.githubusercontent.com/sobolevn/git-secret/master/utils/rpm/git-secret.repo -O git-secret-rpm.repo
|
||||||
|
# Inspect what's inside! You can also enable `gpg` check on repo level.
|
||||||
|
sudo mv git-secret-rpm.repo /etc/yum.repos.d/
|
||||||
|
sudo yum install -y git-secret
|
||||||
|
# Testing, that it worked:
|
||||||
|
git secret --version
|
Loading…
Reference in New Issue