Merge pull request #10 from cevi/feature/api_paging #10
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
name: Productive / Deployment Build | |
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
prodBuild: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the source code | |
- name: 🛎️ Checkout | |
uses: actions/checkout@v2 | |
# Restores the cache if it exists. | |
- name: ⛏ Restore docker image from cache | |
uses: satackey/[email protected] | |
continue-on-error: true | |
- name: 🔐 Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
registry: registry.cevi.tools | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Load .evn file from secrets | |
run: echo "${{ secrets.ENV_FILE }}" > .env | |
- name: 🏗️ Build the stack | |
run: docker-compose build | |
- name: 🚀 Push containers to registry | |
run: docker-compose push |