Skip to content

Update master_portal-virittamo.yml #37

Update master_portal-virittamo.yml

Update master_portal-virittamo.yml #37

name: Build and push to Docker Hub
on: push
jobs:
build-container:
name: Build Docker container
runs-on: ubuntu-latest
steps:
- name: Chekckout code
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Create .env file in client folder
run: |
echo "${{ secrets.ENV_FILE_CLIENT }}" > ./client/.env
- name: Create .env file in server folder
run: |
echo "${{ secrets.ENV_FILE_SERVER }}" > ./server/.env
- name: Build and push to Docker Hub
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: virittamosofta/virittamoportaali123