Skip to content

Commit

Permalink
update cronjob github action: v0.9.8
Browse files Browse the repository at this point in the history
  • Loading branch information
uri-tech committed Aug 16, 2023
1 parent f287f6b commit bd2b5a4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 11 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/NimbleOptiAdapter_ci_cronjob.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@ jobs:
- name: Login to docker hub registry.
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_NOA_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_NOA_PASSWORD }}
run: |
docker login docker.io -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
docker login docker.io -u nimbleopti -p "$DOCKER_PASSWORD"
- name: Build and push "NimbleOpti".
run: |
Expand All @@ -43,9 +42,6 @@ jobs:
DOCKER_IMAGE_NAME="cronjob-n-o-a"
docker buildx build . \
--platform "$DOCKER_TARGET_PLATFORM" \
--tag $DOCKER_IMAGE_NAME:$IMAGE_TAG --tag $DOCKER_IMAGE_NAME:latest \
--tag $DOCKER_USERNAME/$DOCKER_IMAGE_NAME:$IMAGE_TAG --tag $DOCKER_USERNAME/$DOCKER_IMAGE_NAME:latest \
--file cronjob/Dockerfile \
--build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
--build-arg VCS_REF=$(git rev-parse --short HEAD) \
--build-arg VERSION=0.1 \
--output type=image,push=true
2 changes: 1 addition & 1 deletion .github/workflows/NimbleOptiAdapter_ci_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
paths-ignore:
- "README.md"
- "cronjob/**"
- "NimbleOptiAdapter_ci_cronjob.yml"
- ".github/workflows/NimbleOptiAdapter_ci_cronjob.yml"

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/NimbleOptiAdapter_ci_uri-tech.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
paths-ignore:
- "README.md"
- "cronjob/**"
- "NimbleOptiAdapter_ci_cronjob.yml"
- ".github/workflows/NimbleOptiAdapter_ci_cronjob.yml"
jobs:
build:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/NimbleOptiAdapter_ci_yadinb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
paths-ignore:
- "README.md"
- "cronjob/**"
- "NimbleOptiAdapter_ci_cronjob.yml"
- ".github/workflows/NimbleOptiAdapter_ci_cronjob.yml"
jobs:
build:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions cronjob/cronjob-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ done
docker_username="${DOCKER_USERNAME:-nimbleopti}"
image_tag="${IMAGE_TAG:-v1.0.0}"
docker_image_name="${DOCKER_IMAGE_NAME:-${docker_username}/cronjob-n-o-a}"
build_platform="${BUILD_PLATFORM:-local}" # local or all
admin_config="${ADMIN_CONFIG:-false}"
testCode="${TEST_CODE:-true}" # true or false
build_platform="${BUILD_PLATFORM:-all}" # local or all
testCode="${TEST_CODE:-false}" # true or false

# Run Go tests
if [ "$testCode" = "true" ]; then
Expand Down

0 comments on commit bd2b5a4

Please sign in to comment.