update sample file with CLIENT_ID #5
Workflow file for this run
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: Build and Push Docker Image to Docker Hub | |
on: | |
pull_request: | |
types: | |
- closed | |
branches: | |
- dev | |
jobs: | |
if_merged: | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ref: 'dev' | |
- name: login to docker registry | |
uses: docker/login-action@v3 | |
with: | |
username: ${{secrets.DOCKERHUB_USERNAME}} | |
password: ${{secrets.DOCKERHUB_TOKEN}} | |
- name: build and push rair-node docker image to registry | |
uses: docker/build-push-action@v5 | |
with: | |
context: rair-node/ | |
push: true | |
tags: | | |
${{secrets.DOCKERHUB_USERNAME}}/rair-node:${{github.sha}} | |
${{secrets.DOCKERHUB_USERNAME}}/rair-node:latest | |
- name: build and push rair-front docker image to registry | |
run: cp rair-front/.env.sample rair-front/.env | |
- name: build rair-front docker image | |
run: sudo docker build -t rair-front:${{github.sha}} -f rair-front/Dockerfile.prod rair-front | |
- name: tag image | |
run: | | |
docker tag rair-front:${{github.sha}} ${{secrets.DOCKERHUB_USERNAME}}/rair-front:${{github.sha}} | |
docker tag rair-front:${{github.sha}} ${{secrets.DOCKERHUB_USERNAME}}/rair-front:latest | |
- name: Docker push | |
run: | | |
docker push ${{secrets.DOCKERHUB_USERNAME}}/rair-front:${{github.sha}} | |
docker push ${{secrets.DOCKERHUB_USERNAME}}/rair-front:latest | |
- name: build and push rair-stream docker image to registry | |
uses: docker/build-push-action@v5 | |
with: | |
context: rair-stream/ | |
push: true | |
tags: | | |
${{secrets.DOCKERHUB_USERNAME}}/rair-stream:${{github.sha}} | |
${{secrets.DOCKERHUB_USERNAME}}/rair-stream:latest | |
- name: build and push rair-sync docker image to registry | |
uses: docker/build-push-action@v5 | |
with: | |
context: rair-sync/ | |
push: true | |
tags: | | |
${{secrets.DOCKERHUB_USERNAME}}/rair-sync:${{github.sha}} | |
${{secrets.DOCKERHUB_USERNAME}}/rair-sync:latest | |