Skip to content

chore(deps-dev): bump wrangler from 3.30.1 to 3.38.0 #54

chore(deps-dev): bump wrangler from 3.30.1 to 3.38.0

chore(deps-dev): bump wrangler from 3.30.1 to 3.38.0 #54

name: Deploy backend-notif-worker
on:
push:
branches:
- dev
pull_request:
branches:
- dev
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: "mv docker/notif-worker/Dockerfile ."
- name: add secrets
env:
DOCKER_USER: ${{secrets.DOCKERHUB_USERNAME}}
DOCKER_PASSWORD: ${{secrets.DOCKERHUB_TOKEN}}
run: |
cd backend/api
touch .env
printf "NOTIF_WORKER_PORT=%s\n" "${{secrets.NOTIF_WORKER_PORT}}" >> .env
printf "KAFKA_NOTIF_URL=%s\n" "${{secrets.KAFKA_NOTIF_URL}}" >> .env
printf "KAFKA_NOTIF_CLIENT_ID=%s\n" "${{secrets.KAFKA_NOTIF_CLIENT_ID}}" >> .env
printf "VAPID_PRIVATE_KEY=%s\n" "${{secrets.VAPID_PRIVATE_KEY}}" >> .env
printf "VAPID_PUBLIC_KEY=%s\n" "${{secrets.VAPID_PUBLIC_KEY}}" >> .env
printf "HASURA_URL=%s\n" "${{secrets.HASURA_URL}}" >> .env
printf "HAURA_ADMIN_SECRET=%s\n" "${{secrets.HAURA_ADMIN_SECRET}}" >> .env
printf "AUTH_JWT=%s\n" "${{secrets.AUTH_JWT}}" >> .env
printf "AUTH_JWT_PUBLIC_KEY=%s\n" "${{secrets.AUTH_JWT_PUBLIC_KEY}}" >> .env
printf "AUTH_JWT_PRIVATE_KEY=%s\n" "${{secrets.AUTH_JWT_PRIVATE_KEY}}" >> .env
printf "PROCESS=%s\n" "${{secrets.PROCESS}}" >> .env
cd ../..
- name: docker login
env:
DOCKER_USER: ${{secrets.DOCKERHUB_USERNAME}}
DOCKER_PASSWORD: ${{secrets.DOCKERHUB_TOKEN}}
run: |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: Build the Docker image
run: docker build . --tag shawakash/paybox-notif-worker:${{ github.sha }}
- name: Docker Push
run: docker push shawakash/paybox-notif-worker:${{ github.sha }}