Skip to content

Commit

Permalink
Fix most linting errors (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottBrenner authored Nov 26, 2022
1 parent b29d772 commit 141a950
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 13 deletions.
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Basic dependabot.yml file with
# minimum configuration for two package managers

Expand Down
25 changes: 14 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: CI

on:
Expand Down Expand Up @@ -63,23 +64,25 @@ jobs:
- uses: actions/checkout@v3

- name: Build image
run: docker build . --file Dockerfile --tag $IMAGE_NAME
run: docker build . --file Dockerfile --tag "$IMAGE_NAME"

- name: Log into GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin
run: >
echo "${{ secrets.GITHUB_TOKEN }}" |
docker login https://ghcr.io -u ${{ github.actor }} --password-stdin
- name: Push image to GitHub Container Registry
run: |
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/"$IMAGE_NAME"
# Change all uppercase to lowercase
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
IMAGE_ID=$(echo "$IMAGE_ID" | tr '[:upper:]' '[:lower:]')
SHA="${{ github.sha }}"
# Strip git ref prefix from version
REF=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
echo IMAGE_ID=$IMAGE_ID
echo SHA=$SHA
echo REF=$REF
docker tag $IMAGE_NAME $IMAGE_ID:$SHA
docker tag $IMAGE_NAME $IMAGE_ID:$REF
docker push $IMAGE_ID:$SHA
docker push $IMAGE_ID:$REF
echo IMAGE_ID="$IMAGE_ID"
echo SHA="$SHA"
echo REF="$REF"
docker tag "$IMAGE_NAME" "$IMAGE_ID":"$SHA"
docker tag "$IMAGE_NAME" "$IMAGE_ID":"$REF"
docker push "$IMAGE_ID":"$REF"
docker push "$IMAGE_ID":"$SHA"
1 change: 1 addition & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: 'puppet-lint-action'
author: 'Scott Brenner <scott@scottbrenner.me>'
description: 'GitHub Action for puppet-lint'
Expand Down
Empty file modified entrypoint.sh
100644 → 100755
Empty file.
3 changes: 3 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
{
}
{}

0 comments on commit 141a950

Please sign in to comment.