Update deployDev.yml #4
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: Dev Deployment (dev Branch) | |
on: | |
push: | |
branches: | |
- dev | |
jobs: | |
build_docker_container: | |
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 private Registry (registry.cevi.tools) | |
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 and push Docker image | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: ./Dockerfile | |
push: true | |
tags: registry.cevi.tools/cevi/onlinemat-frontend:dev | |
- name: 🚀 Push containers to registry | |
run: docker-compose push -f docker-compose-dev.yml |