-
Notifications
You must be signed in to change notification settings - Fork 750
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'teslamate-org:master' into patch-1
- Loading branch information
Showing
10 changed files
with
98 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ jobs: | |
- name: Buildx | ||
uses: ./.github/actions/build | ||
with: | ||
is_dockerhub_pushed: '1' | ||
is_dockerhub_pushed: "1" | ||
docker_password: ${{ secrets.DOCKER_PASSWORD }} | ||
repository_owner: ${{ github.repository_owner }} | ||
repository: ${{ github.repository }} | ||
|
@@ -75,6 +75,12 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/[email protected] | ||
with: | ||
username: teslamate | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- uses: ./.github/actions/grafana | ||
with: | ||
tags: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,9 @@ on: | |
paths: | ||
- "**/*" | ||
- "!.github/**" | ||
branches: ["ci"] | ||
pull_request_target: | ||
branches: ["master"] | ||
branches: ["master", "ci"] | ||
paths: | ||
- "**/*" | ||
- "!.github/**" # Important: Exclude PRs related to .github from auto-run | ||
|
@@ -39,8 +40,14 @@ jobs: | |
runs-on: ${{ matrix.runs_on }} | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- uses: actions/checkout@v4 | ||
if: ${{ github.event_name != 'pull_request_target' }} | ||
- uses: actions/checkout@v4 | ||
if: ${{ github.event_name == 'pull_request_target' }} | ||
with: | ||
ref: ${{github.event.pull_request.head.ref}} | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
|
||
- name: Buildx | ||
uses: ./.github/actions/build | ||
with: | ||
|
@@ -76,8 +83,13 @@ jobs: | |
grafana: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- uses: actions/checkout@v4 | ||
if: ${{ github.event_name != 'pull_request_target' }} | ||
- uses: actions/checkout@v4 | ||
if: ${{ github.event_name == 'pull_request_target' }} | ||
with: | ||
ref: ${{github.event.pull_request.head.ref}} | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,26 +10,26 @@ permissions: | |
packages: write | ||
|
||
jobs: | ||
purge-pr-untagged: | ||
name: Delete untagged images from ghcr.io | ||
purge-pr-package: | ||
name: Delete images from ghcr.io when PR is closed | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: chipkent/[email protected] | ||
id: cleanup | ||
continue-on-error: true | ||
with: | ||
package-name: ${{ github.event.repository.name }} | ||
tag: pr-${{ github.event.pull_request.number }} | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: actions/delete-package-versions@v4 | ||
if: job.steps.cleanup.status == success() | ||
name: Delete untagged images from ghcr.io | ||
continue-on-error: true | ||
with: | ||
package-name: "teslamate" | ||
package-type: "container" | ||
min-versions-to-keep: 0 | ||
delete-only-untagged-versions: "true" | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
purge-pr-package: | ||
name: Delete image from ghcr.io | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: chipkent/[email protected] | ||
with: | ||
package-name: ${{ github.event.repository.name }} | ||
tag: pr-${{ github.event.pull_request.number }} | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.28.0-dev | ||
1.28.2-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters