Skip to content

Commit

Permalink
Repo updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrenstein committed Jun 22, 2021
1 parent eec5f5b commit ed15c3c
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 3 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: 'Deploy container to latest tag'

on:
push:
branches:
- main

jobs:
build-latest:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_KEY }}
- name: Build the Docker image
run: |
echo "Building container..."
docker build -f Dockerfile -t ahrenstein/cryptodip-bot:latest .
echo "Pushing container to Docker Hub..."
docker push ahrenstein/cryptodip-bot:latest
echo "Done!"
File renamed without changes.
25 changes: 25 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: 'Deploy container to named tag'

on:
push:
tags:
- '*.*.*'

jobs:
build-tag:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_KEY }}
- name: Build the Docker image
run: |
echo "Building container..."
docker build -f Dockerfile -t ahrenstein/cryptodip-bot:${GITHUB_REF/refs\/tags\//} .
echo "Pushing container to Docker Hub..."
docker push ahrenstein/cryptodip-bot:${GITHUB_REF/refs\/tags\//}
echo "Done!"
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ Crypto Dip Buying Bot: Changelog
================================
A list of all the changes made to this repo, and the bot it contains

Version 0.3.1-r1
----------------
This update only changes the repository CI/CD process and documentation

1. Update [TESTING.md](TESTING.md) to reflect proper information
2. Update [GitHub Actions](/.github/workflows) to deploy to DockerHub now that they don't permit auto-building for free


Version 0.3.1
-------------

Expand Down
6 changes: 3 additions & 3 deletions TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ I test this bot against Coinbase Pro sandbox first then against my live Coinbase

Testing Requirements
--------------------
All modules tested must follow these testing rules:
All code tested must follow these testing rules:

1. All modules must be tested against an AWS account with all optional variables tested.
2. Changes to modules should be tested to avoid breaking existing infrastructure.
1. All code must be tested against the exchanges it supports with all optional variables tested.
2. Changes to code should be tested to avoid breaking existing infrastructure.
3. Code should pass `pre-commit` checks.

pre-commit
Expand Down

0 comments on commit ed15c3c

Please sign in to comment.