🚀 📦 Adding scs-101-shipped ci
This commit is contained in:
31
.github/workflows/scs101shipped.yml
vendored
Normal file
31
.github/workflows/scs101shipped.yml
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
name: scs-101 shipped ci
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'scs-101/scs-101-shipped/**'
|
||||
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-shipped/Dockerfile
|
||||
cd scs-101/scs-101-shipped
|
||||
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-shipped .
|
||||
docker push ghcr.io/ehsaniara/scs-kafka-intro:scs-101-shipped
|
||||
Reference in New Issue
Block a user