fix ci
This commit is contained in:
@@ -26,43 +26,24 @@ jobs:
|
|||||||
username: mozempk
|
username: mozempk
|
||||||
password: ${{ secrets.REGISTRY_GITEA_TOKEN }}
|
password: ${{ secrets.REGISTRY_GITEA_TOKEN }}
|
||||||
|
|
||||||
- name: Extract client metadata (tags, labels) for Docker
|
- name: Extract app metadata (tags, labels) for Docker
|
||||||
id: meta_client
|
id: meta_app
|
||||||
uses: docker/metadata-action@v5.5.1
|
uses: docker/metadata-action@v5.5.1
|
||||||
with:
|
with:
|
||||||
# this forces latest. Else it's created only if a release (tag) is created
|
# this forces latest. Else it's created only if a release (tag) is created
|
||||||
tags: |
|
tags: |
|
||||||
type=raw,enable=true,priority=200,prefix=,suffix=,value=latest
|
type=raw,enable=true,priority=200,prefix=,suffix=,value=latest
|
||||||
images: ${{ vars.hostname_gitea }}/${{gitea.repository}}/client
|
images: ${{ vars.hostname_gitea }}/${{gitea.repository}}
|
||||||
|
|
||||||
- name: Build and push client Docker image
|
- name: Build and push app Docker image
|
||||||
id: push_client
|
id: push_app
|
||||||
uses: docker/build-push-action@v5.3.0
|
uses: docker/build-push-action@v5.3.0
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta_client.outputs.tags }}
|
tags: ${{ steps.meta_app.outputs.tags }}
|
||||||
labels: ${{ steps.meta_client.outputs.labels }}
|
labels: ${{ steps.meta_app.outputs.labels }}
|
||||||
|
|
||||||
- name: Extract server metadata (tags, labels) for Docker
|
|
||||||
id: meta_server
|
|
||||||
uses: docker/metadata-action@v5.5.1
|
|
||||||
with:
|
|
||||||
# this forces latest. Else it's created only if a release (tag) is created
|
|
||||||
tags: |
|
|
||||||
type=raw,enable=true,priority=200,prefix=,suffix=,value=latest
|
|
||||||
images: ${{ vars.hostname_gitea }}/${{gitea.repository}}/server
|
|
||||||
|
|
||||||
- name: Build and push server Docker image
|
|
||||||
id: push_server
|
|
||||||
uses: docker/build-push-action@v5.3.0
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
file: ./Dockerfile
|
|
||||||
push: true
|
|
||||||
tags: ${{ steps.meta_server.outputs.tags }}
|
|
||||||
labels: ${{ steps.meta_server.outputs.labels }}
|
|
||||||
deploy_ovh:
|
deploy_ovh:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build_images
|
needs: build_images
|
||||||
|
|||||||
Reference in New Issue
Block a user