Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yamlfmt
Browse files Browse the repository at this point in the history
cyberbuff committed Feb 25, 2024
1 parent d2051d7 commit dc18756
Showing 5 changed files with 19 additions and 14 deletions.
1 change: 0 additions & 1 deletion .github/workflows/check-installation.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Check installation
on: pull_request

jobs:
install-invoke:
name: Install Invoke-Atomic
1 change: 0 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Lint
on: pull_request

jobs:
install-invoke:
name: Install Invoke-Atomic
8 changes: 2 additions & 6 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
name: publish-release
on:
push:
tags: [ 'v*.*.*' ]
tags: ['v*.*.*']
jobs:
publish-powershell-gallery:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2

- name: publishing
run: |
Install-Module -Name powershell-yaml -Force
Publish-Module -Path '.' -NuGetApiKey ${{ secrets.PGALLERY }}
shell: pwsh

build-docker-containers:
name: Build and Publish Containers
runs-on: ${{ matrix.os }}
@@ -41,13 +39,12 @@ jobs:
password: ${{ secrets.DOCKER_TOKEN }}
- name: Docker Build
run: |
docker build docker -f ${{ matrix.file }} -t ${{ matrix.tag }}
docker build docker -f ${{ matrix.file }} -t ${{ matrix.tag }}
docker build docker -f ${{ matrix.file }} -t ${{ matrix.latest }}
- name: Docker Push
run: |
docker push ${{ matrix.tag }}
docker push ${{ matrix.latest }}
publish-manfiest:
name: Publish Manifest
runs-on: ubuntu-latest
@@ -78,4 +75,3 @@ jobs:
run: |
docker manifest push redcanary/invoke-atomicredteam:${{ github.sha }}
docker manifest push redcanary/invoke-atomicredteam:latest
11 changes: 11 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: check-yaml
- id: fix-byte-order-marker
- repo: https://github.com/google/yamlfmt
rev: "v0.11.0"
hooks:
- id: yamlfmt
12 changes: 6 additions & 6 deletions kubernetes/k8s-deployment.yaml
Original file line number Diff line number Diff line change
@@ -16,11 +16,11 @@ spec:
app: atomicred
spec:
containers:
- name: atomicred
image: redcanary/invoke-atomicredteam
imagePullPolicy: "IfNotPresent"
command: ["sleep", "3560d"]
securityContext:
privileged: true
- name: atomicred
image: redcanary/invoke-atomicredteam
imagePullPolicy: "IfNotPresent"
command: ["sleep", "3560d"]
securityContext:
privileged: true
nodeSelector:
kubernetes.io/os: linux

0 comments on commit dc18756

Please sign in to comment.