forked from WildMeOrg/Wildbook
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e82118a
commit aceccd3
Showing
1 changed file
with
10 additions
and
28 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 |
---|---|---|
@@ -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: | ||
|
@@ -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 | ||
|