diff --git a/.github/dependabot.yml b/.github/dependabot.yml index e581725..3863378 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,3 +1,4 @@ +--- # Basic dependabot.yml file with # minimum configuration for two package managers diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6fb423b..301468a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,3 +1,4 @@ +--- name: CI on: @@ -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" diff --git a/action.yml b/action.yml index 9b18461..de55fa4 100644 --- a/action.yml +++ b/action.yml @@ -1,3 +1,4 @@ +--- name: 'puppet-lint-action' author: 'Scott Brenner ' description: 'GitHub Action for puppet-lint' diff --git a/entrypoint.sh b/entrypoint.sh old mode 100644 new mode 100755 diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..48e341a --- /dev/null +++ b/package-lock.json @@ -0,0 +1,3 @@ +{ + "lockfileVersion": 1 +} diff --git a/package.json b/package.json index 2c63c08..0967ef4 100644 --- a/package.json +++ b/package.json @@ -1,2 +1 @@ -{ -} +{}