-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 934 Bytes
/
cd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: CD
on:
workflow_dispatch:
push:
branches:
- proof-of-concept
concurrency:
group: cd
jobs:
build:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v3
- name: Get tag
id: version-tag
uses: ./.github/actions/get-version-tag
- name: Build Docker image
uses: ./.github/actions/docker-build
with:
version: ${{ steps.version-tag.outputs.version-tag }}
latest: true
github-token: ${{ secrets.GITHUB_TOKEN }}
docker-image-name: ${{ vars.DOCKER_IMAGE_NAME }}
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: axelerant/platformsh-deploy-action@v1
with:
project-id: ${{ secrets.PLATFORM_PROJECT_ID }}
cli-token: ${{ secrets.PLATFORM_CLI_TOKEN }}
environment-name: main