🚚(DockerHub) rename DockerHub images
I have created two new repositories on DockerHub, one for the currently existing backend image, and one for the future frontend image. I searched-replaced all occurences of "lasuite/impress-frontend" or "lasuite/impress-backend". One image won't exist anymore, "impress-y-webrtc-signaling", I have removed the steps building and pushing its image to the DockerHub account.
This commit is contained in:
committed by
antoine lebaud
parent
0599e831d6
commit
890a58b133
49
.github/workflows/docker-hub.yml
vendored
49
.github/workflows/docker-hub.yml
vendored
@@ -43,7 +43,7 @@ jobs:
|
|||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: lasuite/impress-backend
|
images: lasuite/meet-backend
|
||||||
-
|
-
|
||||||
name: Login to DockerHub
|
name: Login to DockerHub
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
@@ -87,7 +87,7 @@ jobs:
|
|||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: lasuite/impress-frontend
|
images: lasuite/meet-frontend
|
||||||
-
|
-
|
||||||
name: Login to DockerHub
|
name: Login to DockerHub
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
@@ -104,51 +104,6 @@ jobs:
|
|||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|
||||||
build-and-push-y-webrtc-signaling:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
-
|
|
||||||
uses: actions/create-github-app-token@v1
|
|
||||||
id: app-token
|
|
||||||
with:
|
|
||||||
app-id: ${{ secrets.APP_ID }}
|
|
||||||
private-key: ${{ secrets.PRIVATE_KEY }}
|
|
||||||
owner: ${{ github.repository_owner }}
|
|
||||||
repositories: "impress,secrets"
|
|
||||||
-
|
|
||||||
name: Checkout repository
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
submodules: recursive
|
|
||||||
token: ${{ steps.app-token.outputs.token }}
|
|
||||||
-
|
|
||||||
name: Load sops secrets
|
|
||||||
uses: rouja/actions-sops@main
|
|
||||||
with:
|
|
||||||
secret-file: secrets/numerique-gouv/impress/secrets.enc.env
|
|
||||||
age-key: ${{ secrets.SOPS_PRIVATE }}
|
|
||||||
-
|
|
||||||
name: Docker meta
|
|
||||||
id: meta
|
|
||||||
uses: docker/metadata-action@v5
|
|
||||||
with:
|
|
||||||
images: lasuite/impress-y-webrtc-signaling
|
|
||||||
-
|
|
||||||
name: Login to DockerHub
|
|
||||||
if: github.event_name != 'pull_request'
|
|
||||||
run: echo "$DOCKER_HUB_PASSWORD" | docker login -u "$DOCKER_HUB_USER" --password-stdin
|
|
||||||
-
|
|
||||||
name: Build and push
|
|
||||||
uses: docker/build-push-action@v5
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
file: ./src/frontend/Dockerfile
|
|
||||||
target: y-webrtc-signaling
|
|
||||||
build-args: DOCKER_USER=${{ env.DOCKER_USER }}:-1000
|
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
|
||||||
|
|
||||||
notify-argocd:
|
notify-argocd:
|
||||||
needs:
|
needs:
|
||||||
- build-and-push-frontend
|
- build-and-push-frontend
|
||||||
|
|||||||
12
bin/Tiltfile
12
bin/Tiltfile
@@ -3,7 +3,7 @@ load('ext://namespace', 'namespace_create', 'namespace_inject')
|
|||||||
namespace_create('impress')
|
namespace_create('impress')
|
||||||
|
|
||||||
docker_build(
|
docker_build(
|
||||||
'localhost:5001/impress-backend:latest',
|
'localhost:5001/meet-backend:latest',
|
||||||
context='..',
|
context='..',
|
||||||
dockerfile='../Dockerfile',
|
dockerfile='../Dockerfile',
|
||||||
only=['./src/backend', './src/mail', './docker'],
|
only=['./src/backend', './src/mail', './docker'],
|
||||||
@@ -29,7 +29,7 @@ docker_build(
|
|||||||
)
|
)
|
||||||
|
|
||||||
docker_build(
|
docker_build(
|
||||||
'localhost:5001/impress-frontend:latest',
|
'localhost:5001/meet-frontend:latest',
|
||||||
context='..',
|
context='..',
|
||||||
dockerfile='../src/frontend/Dockerfile',
|
dockerfile='../src/frontend/Dockerfile',
|
||||||
only=['./src/frontend', './docker', './dockerignore'],
|
only=['./src/frontend', './docker', './dockerignore'],
|
||||||
@@ -44,12 +44,12 @@ k8s_yaml(local('cd ../src/helm && helmfile -n impress -e dev template .'))
|
|||||||
migration = '''
|
migration = '''
|
||||||
set -eu
|
set -eu
|
||||||
# get k8s pod name from tilt resource name
|
# get k8s pod name from tilt resource name
|
||||||
POD_NAME="$(tilt get kubernetesdiscovery impress-backend -ojsonpath='{.status.pods[0].name}')"
|
POD_NAME="$(tilt get kubernetesdiscovery meet-backend -ojsonpath='{.status.pods[0].name}')"
|
||||||
kubectl -n impress exec "$POD_NAME" -- python manage.py makemigrations
|
kubectl -n impress exec "$POD_NAME" -- python manage.py makemigrations
|
||||||
'''
|
'''
|
||||||
cmd_button('Make migration',
|
cmd_button('Make migration',
|
||||||
argv=['sh', '-c', migration],
|
argv=['sh', '-c', migration],
|
||||||
resource='impress-backend',
|
resource='meet-backend',
|
||||||
icon_name='developer_board',
|
icon_name='developer_board',
|
||||||
text='Run makemigration',
|
text='Run makemigration',
|
||||||
)
|
)
|
||||||
@@ -57,12 +57,12 @@ cmd_button('Make migration',
|
|||||||
pod_migrate = '''
|
pod_migrate = '''
|
||||||
set -eu
|
set -eu
|
||||||
# get k8s pod name from tilt resource name
|
# get k8s pod name from tilt resource name
|
||||||
POD_NAME="$(tilt get kubernetesdiscovery impress-backend -ojsonpath='{.status.pods[0].name}')"
|
POD_NAME="$(tilt get kubernetesdiscovery meet-backend -ojsonpath='{.status.pods[0].name}')"
|
||||||
kubectl -n impress exec "$POD_NAME" -- python manage.py migrate --no-input
|
kubectl -n impress exec "$POD_NAME" -- python manage.py migrate --no-input
|
||||||
'''
|
'''
|
||||||
cmd_button('Migrate db',
|
cmd_button('Migrate db',
|
||||||
argv=['sh', '-c', pod_migrate],
|
argv=['sh', '-c', pod_migrate],
|
||||||
resource='impress-backend',
|
resource='meet-backend',
|
||||||
icon_name='developer_board',
|
icon_name='developer_board',
|
||||||
text='Run database migration',
|
text='Run database migration',
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
image:
|
image:
|
||||||
repository: localhost:5001/impress-backend
|
repository: localhost:5001/meet-backend
|
||||||
pullPolicy: Always
|
pullPolicy: Always
|
||||||
tag: "latest"
|
tag: "latest"
|
||||||
|
|
||||||
@@ -80,7 +80,7 @@ frontend:
|
|||||||
- dev
|
- dev
|
||||||
|
|
||||||
image:
|
image:
|
||||||
repository: localhost:5001/impress-frontend
|
repository: localhost:5001/meet-frontend
|
||||||
pullPolicy: Always
|
pullPolicy: Always
|
||||||
tag: "latest"
|
tag: "latest"
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
image:
|
image:
|
||||||
repository: lasuite/impress-backend
|
repository: lasuite/meet-backend
|
||||||
pullPolicy: Always
|
pullPolicy: Always
|
||||||
tag: "v0.1.0"
|
tag: "v0.1.0"
|
||||||
|
|
||||||
@@ -113,7 +113,7 @@ backend:
|
|||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
image:
|
image:
|
||||||
repository: lasuite/impress-frontend
|
repository: lasuite/meet-frontend
|
||||||
pullPolicy: Always
|
pullPolicy: Always
|
||||||
tag: "v0.1.0"
|
tag: "v0.1.0"
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
image:
|
image:
|
||||||
repository: lasuite/impress-backend
|
repository: lasuite/meet-backend
|
||||||
pullPolicy: Always
|
pullPolicy: Always
|
||||||
tag: "v0.1.0"
|
tag: "v0.1.0"
|
||||||
|
|
||||||
@@ -113,7 +113,7 @@ backend:
|
|||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
image:
|
image:
|
||||||
repository: lasuite/impress-frontend
|
repository: lasuite/meet-frontend
|
||||||
pullPolicy: Always
|
pullPolicy: Always
|
||||||
tag: "v0.1.0"
|
tag: "v0.1.0"
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
image:
|
image:
|
||||||
repository: lasuite/impress-backend
|
repository: lasuite/meet-backend
|
||||||
pullPolicy: Always
|
pullPolicy: Always
|
||||||
tag: "main"
|
tag: "main"
|
||||||
|
|
||||||
@@ -113,7 +113,7 @@ backend:
|
|||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
image:
|
image:
|
||||||
repository: lasuite/impress-frontend
|
repository: lasuite/meet-frontend
|
||||||
pullPolicy: Always
|
pullPolicy: Always
|
||||||
tag: "main"
|
tag: "main"
|
||||||
|
|
||||||
|
|||||||
@@ -4,34 +4,34 @@
|
|||||||
|
|
||||||
### General configuration
|
### General configuration
|
||||||
|
|
||||||
| Name | Description | Value |
|
| Name | Description | Value |
|
||||||
| ------------------------------------------ | ---------------------------------------------------- | ------------------------ |
|
| ------------------------------------------ | ---------------------------------------------------- |------------------------|
|
||||||
| `image.repository` | Repository to use to pull impress's container image | `lasuite/impress-backend` |
|
| `image.repository` | Repository to use to pull impress's container image | `lasuite/meet-backend` |
|
||||||
| `image.tag` | impress's container tag | `latest` |
|
| `image.tag` | impress's container tag | `latest` |
|
||||||
| `image.pullPolicy` | Container image pull policy | `IfNotPresent` |
|
| `image.pullPolicy` | Container image pull policy | `IfNotPresent` |
|
||||||
| `image.credentials.username` | Username for container registry authentication | |
|
| `image.credentials.username` | Username for container registry authentication | |
|
||||||
| `image.credentials.password` | Password for container registry authentication | |
|
| `image.credentials.password` | Password for container registry authentication | |
|
||||||
| `image.credentials.registry` | Registry url for which the credentials are specified | |
|
| `image.credentials.registry` | Registry url for which the credentials are specified | |
|
||||||
| `image.credentials.name` | Name of the generated secret for imagePullSecrets | |
|
| `image.credentials.name` | Name of the generated secret for imagePullSecrets | |
|
||||||
| `nameOverride` | Override the chart name | `""` |
|
| `nameOverride` | Override the chart name | `""` |
|
||||||
| `fullnameOverride` | Override the full application name | `""` |
|
| `fullnameOverride` | Override the full application name | `""` |
|
||||||
| `ingress.enabled` | whether to enable the Ingress or not | `false` |
|
| `ingress.enabled` | whether to enable the Ingress or not | `false` |
|
||||||
| `ingress.className` | IngressClass to use for the Ingress | `nil` |
|
| `ingress.className` | IngressClass to use for the Ingress | `nil` |
|
||||||
| `ingress.host` | Host for the Ingress | `impress.example.com` |
|
| `ingress.host` | Host for the Ingress | `impress.example.com` |
|
||||||
| `ingress.path` | Path to use for the Ingress | `/` |
|
| `ingress.path` | Path to use for the Ingress | `/` |
|
||||||
| `ingress.hosts` | Additional host to configure for the Ingress | `[]` |
|
| `ingress.hosts` | Additional host to configure for the Ingress | `[]` |
|
||||||
| `ingress.tls.enabled` | Weather to enable TLS for the Ingress | `true` |
|
| `ingress.tls.enabled` | Weather to enable TLS for the Ingress | `true` |
|
||||||
| `ingress.tls.additional[].secretName` | Secret name for additional TLS config | |
|
| `ingress.tls.additional[].secretName` | Secret name for additional TLS config | |
|
||||||
| `ingress.tls.additional[].hosts[]` | Hosts for additional TLS config | |
|
| `ingress.tls.additional[].hosts[]` | Hosts for additional TLS config | |
|
||||||
| `ingress.customBackends` | Add custom backends to ingress | `[]` |
|
| `ingress.customBackends` | Add custom backends to ingress | `[]` |
|
||||||
| `ingressAdmin.enabled` | whether to enable the Ingress or not | `false` |
|
| `ingressAdmin.enabled` | whether to enable the Ingress or not | `false` |
|
||||||
| `ingressAdmin.className` | IngressClass to use for the Ingress | `nil` |
|
| `ingressAdmin.className` | IngressClass to use for the Ingress | `nil` |
|
||||||
| `ingressAdmin.host` | Host for the Ingress | `impress.example.com` |
|
| `ingressAdmin.host` | Host for the Ingress | `impress.example.com` |
|
||||||
| `ingressAdmin.path` | Path to use for the Ingress | `/admin` |
|
| `ingressAdmin.path` | Path to use for the Ingress | `/admin` |
|
||||||
| `ingressAdmin.hosts` | Additional host to configure for the Ingress | `[]` |
|
| `ingressAdmin.hosts` | Additional host to configure for the Ingress | `[]` |
|
||||||
| `ingressAdmin.tls.enabled` | Weather to enable TLS for the Ingress | `true` |
|
| `ingressAdmin.tls.enabled` | Weather to enable TLS for the Ingress | `true` |
|
||||||
| `ingressAdmin.tls.additional[].secretName` | Secret name for additional TLS config | |
|
| `ingressAdmin.tls.additional[].secretName` | Secret name for additional TLS config | |
|
||||||
| `ingressAdmin.tls.additional[].hosts[]` | Hosts for additional TLS config | |
|
| `ingressAdmin.tls.additional[].hosts[]` | Hosts for additional TLS config | |
|
||||||
|
|
||||||
### backend
|
### backend
|
||||||
|
|
||||||
@@ -83,7 +83,7 @@
|
|||||||
|
|
||||||
| Name | Description | Value |
|
| Name | Description | Value |
|
||||||
| ------------------------------------------------------ | ----------------------------------------------------------------------------------- | ------------------------- |
|
| ------------------------------------------------------ | ----------------------------------------------------------------------------------- | ------------------------- |
|
||||||
| `frontend.image.repository` | Repository to use to pull impress's frontend container image | `lasuite/impress-frontend` |
|
| `frontend.image.repository` | Repository to use to pull impress's frontend container image | `lasuite/meet-frontend` |
|
||||||
| `frontend.image.tag` | impress's frontend container tag | `latest` |
|
| `frontend.image.tag` | impress's frontend container tag | `latest` |
|
||||||
| `frontend.image.pullPolicy` | frontend container image pull policy | `IfNotPresent` |
|
| `frontend.image.pullPolicy` | frontend container image pull policy | `IfNotPresent` |
|
||||||
| `frontend.command` | Override the frontend container command | `[]` |
|
| `frontend.command` | Override the frontend container command | `[]` |
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
## @extra image.credentials.registry Registry url for which the credentials are specified
|
## @extra image.credentials.registry Registry url for which the credentials are specified
|
||||||
## @extra image.credentials.name Name of the generated secret for imagePullSecrets
|
## @extra image.credentials.name Name of the generated secret for imagePullSecrets
|
||||||
image:
|
image:
|
||||||
repository: lasuite/impress-backend
|
repository: lasuite/meet-backend
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
tag: "latest"
|
tag: "latest"
|
||||||
|
|
||||||
@@ -206,7 +206,7 @@ frontend:
|
|||||||
## @param frontend.image.tag impress's frontend container tag
|
## @param frontend.image.tag impress's frontend container tag
|
||||||
## @param frontend.image.pullPolicy frontend container image pull policy
|
## @param frontend.image.pullPolicy frontend container image pull policy
|
||||||
image:
|
image:
|
||||||
repository: lasuite/impress-frontend
|
repository: lasuite/meet-frontend
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
tag: "latest"
|
tag: "latest"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user