Skip to content

Commit

Permalink
Update nightly.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
TanyaStere42 authored Mar 13, 2024
1 parent e82118a commit aceccd3
Showing 1 changed file with 10 additions and 28 deletions.
38 changes: 10 additions & 28 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,7 @@
name: Nightly
name: dockerbuild

on:
workflow_dispatch:
push:
branches:
- master
- 'releases/**'
tags:
- 'v**'
release:
types: [created]
schedule:
- cron: '0 0 * * *' # Every day at midnight
pull_request:
paths:
- '.github/workflows/nightly.yml'
- 'devops/**'

jobs:
devops:
Expand All @@ -30,17 +16,13 @@ jobs:
- name: Build containers
run: bash devops/build.sh

# Log into container registries
- name: Log into Docker Hub
run: echo "${{ secrets.WBIA_WILDMEBOT_DOCKER_HUB_TOKEN }}" | docker login -u wildmebot --password-stdin

- name: Log into GitHub Packages
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin

# Push containers out to container registries
- name: Push to GitHub Packages
run: bash devops/publish.sh -t nightly -r docker.pkg.github.com

- name: Push to Docker Hub
if: github.event_name == 'schedule'
run: bash devops/publish.sh -t nightly
- name: Docker Build & Push Action
uses: mr-smithers-excellent/[email protected]
with:
image: tanyastere42/wildbook-test
registry: docker.io
username: ${{ secrets.DOCKER_USER_SECRET }}
password: ${{ secrets.DOCKER_TOKEN_SECRET }}
dockerfile: ../../devops/wildbook/docker-compose.yml

0 comments on commit aceccd3

Please sign in to comment.