Skip to content

Merge remote-tracking branch 'origin/dev' into lendava #992

Merge remote-tracking branch 'origin/dev' into lendava

Merge remote-tracking branch 'origin/dev' into lendava #992

Workflow file for this run

name: Build and publish Docker image
on:
push:
branches:
- 'lendava'
jobs:
push_to_registry:
name: Build and push Docker image to registry
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Scaleway
uses: docker/login-action@v2
with:
registry: rg.fr-par.scw.cloud/djnd
username: nologin
password: ${{ secrets.SCW_SECRET_TOKEN }}
- name: Build and push parlassets
uses: docker/build-push-action@v3
with:
context: .
file: dockerfiles/parlassets.Dockerfile
push: true
tags: |
rg.fr-par.scw.cloud/djnd/parlassets-lendava:${{ github.sha }}
rg.fr-par.scw.cloud/djnd/parlassets-lendava:latest
- name: Build and push parlacards
uses: docker/build-push-action@v3
with:
context: .
file: dockerfiles/parlacards.Dockerfile
build-args: |
VITE_PARLASSETS_URL=https://cdn.lendava.parlameter.si
push: true
tags: |
rg.fr-par.scw.cloud/djnd/parlacards-lendava:${{ github.sha }}
rg.fr-par.scw.cloud/djnd/parlacards-lendava:latest
- name: Build and push parlasite
uses: docker/build-push-action@v3
with:
context: .
file: dockerfiles/parlasite.Dockerfile
push: true
tags: |
rg.fr-par.scw.cloud/djnd/parlasite-lendava:${{ github.sha }}
rg.fr-par.scw.cloud/djnd/parlasite-lendava:latest
- name: Update image versions in kustomize/kustomization.yaml
run: |
sed -i "s/newTag: .*\+/newTag\: '${{ github.sha }}'/" kustomize/kustomization.yaml
- name: Commit and push new image versions
uses: EndBug/add-and-commit@v9
with:
add: '.'
message: 'Update image versions in kustomize/kustomization.yaml'