Skip to content

Commit

Permalink
chore: split server docker workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
lwestfall committed Dec 31, 2023
1 parent 06441bc commit 51eb382
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Push Server Docker Image
name: Build and Push Server Docker Image (Prod)

on:
workflow_dispatch:
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/server-test-docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build and Push Server Docker Image (Test)

on:
workflow_dispatch:

jobs:
build-and-push:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and Push Docker Image
run: |
cd src/Server
docker build -t ${{ secrets.DOCKER_USERNAME }}/cbc-api-test .
docker push ${{ secrets.DOCKER_USERNAME }}/cbc-api-test:latest

0 comments on commit 51eb382

Please sign in to comment.