Skip to content

v0.15

v0.15 #38

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI/CD
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches:
- develop
pull_request:
branches:
- develop
jobs:
docker_build:
runs-on: dev
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v4
- name: build image
run: |
chmod 775 main.sh
docker buildx build -t cnegovik/helloworld:${{ github.event.head_commit.message }} -t cnegovik/helloworld:latest .
docker tag cnegovik/helloworld:${{ github.event.head_commit.message }} cnegovik/helloworld:latest
docker push cnegovik/helloworld:latest
docker push cnegovik/helloworld:${{ github.event.head_commit.message }}
docker_run:
runs-on: dev
needs: docker_build
steps:
- name: Run docker compose
run: |
cd
docker compose up -d
docker system prune -af
- name: Check the deployed service URL
uses: cygnetdigital/[email protected]
with:
url: 'http://dev5-lab-cos717.sjclab.exigengroup.com/'
responseCode: '200'
timeout: 2000
interval: 500