Compare commits

...

2 Commits

Author SHA1 Message Date
470df69c56
auto build
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 1m50s
2025-01-10 08:19:47 +05:00
c2ab2ea996
add the cookie server script to docker.... 2025-01-10 08:18:24 +05:00
2 changed files with 39 additions and 0 deletions

View File

@ -5,4 +5,6 @@ RUN apt-get update && apt-get install -y curl jq && apt-get clean && rm -rf /var
WORKDIR /app
COPY getcookie.py .
CMD python getcookie.py

View File

@ -0,0 +1,37 @@
name: Build and Push Docker Images
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
jobs:
docker:
name: Build and Push Docker Images
runs-on: builder
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Build Docker images
working-directory: .build/prod
run: docker compose build
- name: Login to Docker Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ${{ vars.DOCKER_REGISTRY_URL }}
username: ${{ vars.DOCKER_REGISTRY_USER }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
- name: Push Docker images
if: github.event_name != 'pull_request'
working-directory: .build/prod
run: docker compose push