Skip to content

Commit

Permalink
chore(ci): Remove unnecessary push trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
ImBIOS committed Oct 2, 2023
1 parent 6359080 commit fecef4e
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,12 @@ on:
schedule:
- cron: "0 0 * * *" # Every day at midnight
workflow_dispatch:
# For debug and development only
push:
branches:
- main

env:
REGISTRY: imbios
PLATFORMS: linux/amd64,linux/arm64
VERSIONS: 16,18,20
TYPES: alpine,debian-slim,debian
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
check-and-build:
Expand All @@ -30,10 +25,7 @@ jobs:
- name: Check for new releases in nodejs/docker-node
id: nodejs
run: |
gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/nodejs/node/releases/latest | jq -r '.tag_name' > latest_nodejs.txt
curl -s https://api.github.com/repos/nodejs/node/releases/latest | jq -r '.tag_name' > latest_nodejs.txt
if [[ -f last_nodejs.txt && $(cat last_nodejs.txt) != $(cat latest_nodejs.txt) ]]; then
echo "New NodeJS version found."
echo "new-release=true" >> $GITHUB_ENV
Expand Down

0 comments on commit fecef4e

Please sign in to comment.