Skip to content

Commit 99c5aa0

Browse files
committed
feature: rollback
1 parent aa599f0 commit 99c5aa0

File tree

2 files changed

+26
-35
lines changed

2 files changed

+26
-35
lines changed

.github/workflows/frontend-docker-ci.yaml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/frontend-docker-deploy.yaml renamed to .github/workflows/frontend-docker-cicd.yaml

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,34 @@
11
name: CI/CD Pipeline
22

33
on:
4-
workflow_run:
5-
workflows: ["CI/CD Pipeline"]
6-
types:
7-
- completed
4+
push:
5+
branches:
6+
- feat/front-docker-deploy
87

98
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
16+
- name: Set up Docker Buildx
17+
uses: docker/setup-buildx-action@v1
18+
19+
- name: Log in to Docker Hub
20+
uses: docker/login-action@v2
21+
with:
22+
username: ${{ secrets.DOCKER_USERNAME }}
23+
password: ${{ secrets.DOCKER_PASSWORD }}
24+
25+
- name: Build and push Docker image
26+
uses: docker/build-push-action@v2
27+
with:
28+
push: true
29+
context: frontend
30+
file: frontend/zicdding-class.com/Dockerfile
31+
tags: ${{ secrets.DOCKER_USERNAME }}/zicdding-front:latest
1032
deploy:
1133
runs-on: ubuntu-latest
1234
needs: build

0 commit comments

Comments
 (0)