Skip to content

Bump @types/node from 22.5.1 to 22.7.4 in /src/Frontend/camFrontend #367

Bump @types/node from 22.5.1 to 22.7.4 in /src/Frontend/camFrontend

Bump @types/node from 22.5.1 to 22.7.4 in /src/Frontend/camFrontend #367

Workflow file for this run

name: CI
on:
push:
jobs:
# python-test-backend:
# name: πŸ§ͺ Test backend Python code
# runs-on: ubuntu-latest
# steps:
# - name: πŸ“₯ Check-out
# uses: actions/checkout@v4
# - name: 🧰 Install Python
# uses: actions/setup-python@v5
# with:
# python-version: '3.8'
# cache: pipenv
# cache-dependency-path: src/Backend/Pipfile.lock
# - name: 🧰 Install Pipenv
# run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
# - name: 🧰 Install Python requirements
# working-directory: src/Backend
# run: pipenv install
# - name: πŸ“₯ Download NLTK tools
# working-directory: src/Backend
# run: |
# pipenv run python -m nltk.downloader stopwords
# pipenv run python -m nltk.downloader punkt
# pipenv run python -m nltk.downloader averaged_perceptron_tagger
# - name: πŸ§ͺ Test Python code
# working-directory: src/Backend
# run: pipenv run python test.py
# env:
# ES_USERNAME: reader
# ES_PASSWORD: reader
docker-build-backend:
name: πŸ—οΈ Build backend Docker image
runs-on: ubuntu-latest
steps:
- name: πŸ“₯ Check-out
uses: actions/checkout@v4
- name: 🧰 Set up QEMU
uses: docker/setup-qemu-action@v3
- name: 🧰 Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: πŸ—οΈ Build Docker base image
uses: docker/build-push-action@v6
with:
context: src/Backend
push: false
cache-from: type=gha
cache-to: type=gha,mode=max
target: pipenv-with-dependencies
- name: πŸ—οΈ Build Docker image
uses: docker/build-push-action@v6
with:
context: src/Backend
push: false
docker-build-frontend:
name: πŸ—οΈ Build frontend Docker image
runs-on: ubuntu-latest
steps:
- name: πŸ“₯ Check-out
uses: actions/checkout@v4
- name: 🧰 Set up QEMU
uses: docker/setup-qemu-action@v3
- name: 🧰 Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: πŸ—οΈ Build Docker image
uses: docker/build-push-action@v6
with:
context: src/Frontend/camFrontend
push: false
cache-from: type=gha
cache-to: type=gha,mode=max
docker-publish-backend:
name: πŸš€ Publish backend Docker image
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
permissions:
packages: write
needs:
# - python-test-backend
- docker-build-backend
- docker-build-frontend
runs-on: ubuntu-latest
steps:
- name: πŸ“₯ Check-out
uses: actions/checkout@v4
- name: 🧰 Set up QEMU
uses: docker/setup-qemu-action@v3
- name: 🧰 Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: πŸ”‘ Login to GitHub Packages
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: πŸ”‘ Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: ℹ️ Extract image metadata
id: meta
uses: docker/metadata-action@v5
with:
images: |
webis/cam-backend
ghcr.io/${{ github.repository }}/cam-backend
- name: πŸ—οΈ Build Docker base image
uses: docker/build-push-action@v6
with:
context: src/Backend
push: false
cache-from: type=gha
cache-to: type=gha,mode=max
target: pipenv-with-dependencies
- name: πŸš€ Build and push image
uses: docker/build-push-action@v6
with:
context: src/Backend
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: πŸ—οΈ Build Docker image
uses: docker/build-push-action@v6
with:
context: src/Backend
push: false
docker-publish-frontend:
name: πŸš€ Publish frontend Docker image
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
permissions:
packages: write
needs:
# - python-test-backend
- docker-build-backend
- docker-build-frontend
runs-on: ubuntu-latest
steps:
- name: πŸ“₯ Check-out
uses: actions/checkout@v4
- name: 🧰 Set up QEMU
uses: docker/setup-qemu-action@v3
- name: 🧰 Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: πŸ”‘ Login to GitHub Packages
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: πŸ”‘ Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: ℹ️ Extract image metadata
id: meta
uses: docker/metadata-action@v5
with:
images: |
webis/cam-frontend
ghcr.io/${{ github.repository }}/cam-frontend
- name: πŸš€ Build and push image
uses: docker/build-push-action@v6
with:
context: src/Frontend/camFrontend
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
github-release:
name: πŸš€ Create GitHub release
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
needs:
# - python-test-backend
- docker-build-backend
- docker-build-frontend
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: πŸ“₯ Check-out
uses: actions/checkout@v4
- name: πŸš€ Create GitHub release
uses: softprops/action-gh-release@v2
with:
name: Release ${{ github.ref_name }}
fail_on_unmatched_files: true
draft: false
prerelease: false
generate_release_notes: true