Skip to content

⬆️ Bump @types/react from 18.3.10 to 18.3.12 (#63) #86

⬆️ Bump @types/react from 18.3.10 to 18.3.12 (#63)

⬆️ Bump @types/react from 18.3.10 to 18.3.12 (#63) #86

Workflow file for this run

name: Docker Build and Push
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker image
run: docker build -t ${{ secrets.K8S_DOCKER_REGISTHOST }}/unipro-site:latest .
id: build
- name: Save Docker image to file
run: docker save ${{ secrets.K8S_DOCKER_REGISTHOST }}/unipro-site:latest -o image.tar
- name: Upload Docker image as artifact
uses: actions/upload-artifact@v4
with:
name: image
path: image.tar
push:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Download Docker image artifact
uses: actions/download-artifact@v4
with:
name: image
path: .
- name: Check Docker status
run: |
export DOCKER_CLIENT_TIMEOUT=18000
export COMPOSE_HTTP_TIMEOUT=240
sudo systemctl status docker.service
sudo journalctl -xeu docker.service
- name: Load Docker image from file
run: docker load -i image.tar
- name: Push Docker image
run: docker push ${{ secrets.K8S_DOCKER_REGISTHOST }}/unipro-site:latest