-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (42 loc) · 1.34 KB
/
custom-package-container.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
40
41
42
43
44
# SPDX-License-Identifier: Apache-2.0
# Copyright 2022 Atlan Pte. Ltd.
name: "Custom package container"
on:
workflow_call:
inputs:
package_name:
required: true
type: string
version:
required: true
type: string
jobs:
custom-package-container:
runs-on: ubuntu-latest
name: "${{inputs.package_name}} container"
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Log in to container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Create assembly area
run: |
mkdir -p ./containers/custom-package/assembly
- uses: actions/download-artifact@v4
with:
name: "${{inputs.package_name}}"
path: ./containers/custom-package/assembly
- name: Build and publish container image
uses: docker/build-push-action@v6
with:
build-args: |
VERSION=${{inputs.version}}
PKG_NAME=${{inputs.package_name}}
push: true
tags: ghcr.io/atlanhq/csa-${{inputs.package_name}}:${{inputs.version}}, ghcr.io/atlanhq/csa-${{inputs.package_name}}:latest
context: ./containers/custom-package
platforms: linux/amd64