Skip to content

chore: bump @bimdata/[email protected] from Github Actions [skip e2e] #2382

chore: bump @bimdata/[email protected] from Github Actions [skip e2e]

chore: bump @bimdata/[email protected] from Github Actions [skip e2e] #2382

Workflow file for this run

name: Platform
on:
push:
branches:
- main
- master
- release
- develop
env:
app: platform
jobs:
build-and-push:
runs-on: [self-hosted, common]
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Login to BIMData Docker Registry
uses: docker/login-action@v2
with:
registry: docker-registry.bimdata.io
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}
- id: tag
name: Get docker tag
uses: bimdata/actions/get-docker-tag@v2
with:
branch: ${{ github.ref }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: etc/Dockerfile
push: true
pull: true
tags: |
docker-registry.bimdata.io/bimdata/${{ env.app }}:${{ github.sha }}
docker-registry.bimdata.io/bimdata/${{ env.app }}:${{ env.tag }}
e2e-tests:
runs-on: [self-hosted, testendtoend]
needs: build-and-push
if: ${{ !contains(github.event.head_commit.message, '[skip e2e]') }}
steps:
- uses: actions/checkout@v3
with:
repository: bimdata/bimdata-test
ref: master
token: ${{ secrets.REPOS_TOKEN }}
- id: tag
name: Get docker tag
uses: bimdata/actions/get-docker-tag@v2
with:
branch: ${{ github.ref }}
- name: Run e2e tests
uses: ./end-to-end/
with:
docker_tag: ${{ env.tag }}
ref: ${{ github.ref }}
github_token: ${{ secrets.REPOS_TOKEN }}
vault_passwd: ${{ secrets.VAULT_PASSWD }}
cypress_version: 13.1.0
deploy:
runs-on: [self-hosted, common]
needs: build-and-push
steps:
- name: Login to BIMData Docker Registry
uses: docker/login-action@v2
with:
registry: docker-registry.bimdata.io
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}
- id: tag
name: Get docker tag
uses: bimdata/actions/get-docker-tag@v2
with:
branch: ${{ github.ref }}
- name: Deploy on ${{ env.tag }}
uses: bimdata/actions/deployment@v2
with:
inventory: ${{ env.tag }}
app: ${{ env.app }}
vault-pass: ${{ secrets.ANSIBLE_VAULT_PASSWD }}