Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #13

Merged
merged 2 commits into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .github/workflows/docker-img-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ jobs:
if [ "${{ github.event.inputs.version }}" != "" ]; then
echo "TAG_NAME=${{ github.event.inputs.version }}" >> "${GITHUB_ENV}"
fi;
- name: Set variable based on actor
run: |
if [[ "${{ github.actor }}" == *"bot"* ]]; then
echo "GITHUB_ACTOR=bot" >> $GITHUB_ENV
else
echo "GITHUB_ACTOR=${{ github.actor }}" >> $GITHUB_ENV
fi
- name: Build Docker image only
if: github.event_name == 'pull_request'
uses: docker/build-push-action@v6
Expand All @@ -45,7 +52,7 @@ jobs:
file: Dockerfiles/${{ matrix.dockerfile }}
push: false
load: true
tags: ghcr.io/${{ github.actor }}/${{ env.IMG_REPO_NAME }}:${{ env.TAG_NAME }}
tags: ghcr.io/${{ env.GITHUB_ACTOR }}/${{ env.IMG_REPO_NAME }}:${{ env.TAG_NAME }}
- name: Build and push Docker image
if: github.event_name == 'push'
uses: docker/build-push-action@v6
Expand All @@ -54,10 +61,10 @@ jobs:
file: Dockerfiles/${{ matrix.dockerfile }}
push: true
load: true
tags: ghcr.io/${{ github.actor }}/${{ env.IMG_REPO_NAME }}:${{ env.TAG_NAME }}
tags: ghcr.io/${{ env.GITHUB_ACTOR }}/${{ env.IMG_REPO_NAME }}:${{ env.TAG_NAME }}
- name: Save Docker image to tarball
run: |
docker run -t --name wsl_export ghcr.io/${{ github.actor }}/${{ env.IMG_REPO_NAME }}:${{ env.TAG_NAME }} ls
docker run -t --name wsl_export ghcr.io/${{ env.GITHUB_ACTOR }}/${{ env.IMG_REPO_NAME }}:${{ env.TAG_NAME }} ls
docker export wsl_export > ${{ env.IMG_REPO_NAME }}.tar
- name: Check if release exists
id: check-release
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ repos:
- id: codespell
# Gitleaks for detecting secrets in Git repositories
- repo: https://github.com/gitleaks/gitleaks
rev: "v8.18.4"
rev: "v8.19.2"
hooks:
- id: gitleaks
# Talisman for pre-commit Git hooks to detect sensitive files
Expand Down