-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (36 loc) · 1.13 KB
/
publish-capi.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
name: Publish Consumer API Container Image
on:
push:
tags:
- "capi/*"
jobs:
publish-capi-container-image:
name: Publish Consumer API Container Image
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install script dependencies
run: npm install --prefix ./.ci
- name: Docker Login
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract version from git tag
id: extract-version-from-git-tag
run: echo "VERSION=$(./.ci/extractVersionFromGitTag.ts)" >> $GITHUB_OUTPUT
env:
GIT_TAG: ${{ github.ref_name }}
- name: Build Container Image
run: ./.ci/capi/buildContainerImage.ts
env:
TAG: ${{ steps.extract-version-from-git-tag.outputs.VERSION }}
- name: Push Container Image
run: ./.ci/capi/pushContainerImage.ts
env:
TAG: ${{ steps.extract-version-from-git-tag.outputs.VERSION }}