🚧 adding scs-101/scs-101-order deployment
This commit is contained in:
31
.github/workflows/scs101order.yml
vendored
Normal file
31
.github/workflows/scs101order.yml
vendored
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
name: scs-101 inventory-check ci
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'scs-101/scs-101-order/**'
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: Set up JDK 11
|
||||||
|
uses: actions/setup-java@v1
|
||||||
|
with:
|
||||||
|
java-version: 11
|
||||||
|
|
||||||
|
- name: Docker Build and Push
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: |
|
||||||
|
cp scs-101/Dockerfile scs-101/scs-101-order/Dockerfile
|
||||||
|
cd scs-101/scs-101-order
|
||||||
|
echo $GITHUB_TOKEN | docker login ghcr.io -u USERNAME --password-stdin
|
||||||
|
docker build --build-arg GITHUB_TOKEN=$GITHUB_TOKEN -t ghcr.io/ehsaniara/scs-kafka-intro:scs-101-order-latest .
|
||||||
|
docker push ghcr.io/ehsaniara/scs-kafka-intro:scs-101-order-latest
|
||||||
Reference in New Issue
Block a user