Skip to content

deps: update dependency lucide-react to v1.22.0 #1700

deps: update dependency lucide-react to v1.22.0

deps: update dependency lucide-react to v1.22.0 #1700

Workflow file for this run

# SPDX-FileCopyrightText: 2023 HH Partners
#
# SPDX-License-Identifier: MIT
name: Build and publish Docker image on Docker Hub and GitHub Packages
on:
push:
branches:
- main
- worker-deployment
- do-197-env-files-should-be-loaded-in-scripts-not-in-code
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
NEXT_PUBLIC_API_URL: ${{ vars.NEXT_PUBLIC_API_URL }}
steps:
- name: Check out code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
- name: Cache Docker layers
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Log in to Docker Hub
uses: docker/login-action@af1e73f918a031802d376d3c8bbc3fe56130a9b0 # v4.4.0
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Log in to GitHub Packages
uses: docker/login-action@af1e73f918a031802d376d3c8bbc3fe56130a9b0 # v4.4.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker metadata for Worker
id: meta-worker
uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6.2.0
with:
images: |
${{ secrets.DOCKER_HUB_USERNAME }}/worker
ghcr.io/${{ github.repository }}/worker
tags: |
type=sha
type=raw,value=latest
- name: Build and push Worker Docker image
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
continue-on-error: false
with:
context: .
file: "Worker.Dockerfile"
push: true
tags: ${{ steps.meta-worker.outputs.tags }}
labels: ${{ steps.meta-worker.outputs.labels }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
- name: Docker metadata for API
id: meta-api
uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6.2.0
with:
images: |
${{ secrets.DOCKER_HUB_USERNAME }}/api
ghcr.io/${{ github.repository }}/api
tags: |
type=sha
type=raw,value=latest
- name: Build and push API Docker image
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
continue-on-error: false
with:
context: .
file: "API.Dockerfile"
push: true
tags: ${{ steps.meta-api.outputs.tags }}
labels: ${{ steps.meta-api.outputs.labels }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
- name: Docker metadata for Clearance UI
id: meta-clearance-ui
uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6.2.0
with:
images: |
${{ secrets.DOCKER_HUB_USERNAME }}/clearance-ui
ghcr.io/${{ github.repository }}/clearance-ui
tags: |
type=sha
type=raw,value=latest
- name: Build and push API Docker image
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
continue-on-error: false
with:
build-args: |
NEXT_PUBLIC_API_URL=${{ env.NEXT_PUBLIC_API_URL }}
context: .
file: "UI.Dockerfile"
push: true
tags: ${{ steps.meta-clearance-ui.outputs.tags }}
labels: ${{ steps.meta-clearance-ui.outputs.labels }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache