|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http:/www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, |
| 12 | +# software distributed under the License is distributed on an |
| 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +# KIND, either express or implied. See the License for the |
| 15 | +# specific language governing permissions and limitations |
| 16 | +# under the License. |
1 | 17 | name: Kubernetes
|
2 | 18 |
|
3 | 19 | on:
|
|
11 | 27 | steps:
|
12 | 28 | - uses: actions/checkout@v3
|
13 | 29 |
|
| 30 | + - name: Docker meta |
| 31 | + id: meta |
| 32 | + uses: docker/metadata-action@v5 |
| 33 | + with: |
| 34 | + images: | |
| 35 | + apache/datafusion-ray |
| 36 | + ghcr.io/apache/datafusion-ray |
| 37 | + tags: | |
| 38 | + type=ref,event=branch |
| 39 | + type=ref,event=pr |
| 40 | + type=semver,pattern={{version}} |
| 41 | + type=semver,pattern={{major}}.{{minor}} |
| 42 | + type=semver,pattern={{major}} |
| 43 | + type=sha |
14 | 44 | - name: Set up Docker Buildx
|
15 | 45 | uses: docker/setup-buildx-action@v3
|
16 | 46 |
|
|
27 | 57 | with:
|
28 | 58 | context: .
|
29 | 59 | file: ./k8s/Dockerfile
|
30 |
| - tags: username/repository:tag |
31 |
| - # Push only on tags |
| 60 | + tags: ${{ steps.meta.outputs.tags }} |
| 61 | + labels: ${{ steps.meta.outputs.labels }} |
32 | 62 | push: ${{ startsWith(github.ref, 'refs/tags/') }}
|
0 commit comments