-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 1005 Bytes
/
release.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
name: Build and Push fruity-clickHouse image
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
name: Build and Push a new image version
runs-on: ubuntu-latest
steps:
- name: Checkout data repository
uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract tag version
id: vars
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
- name: Build Docker image
run: |
docker build -t ghcr.io/datawheel/fruity-clickhouse:${{ env.VERSION }} .
docker tag ghcr.io/datawheel/fruity-clickhouse:${{ env.VERSION }} ghcr.io/datawheel/fruity-clickhouse:latest
- name: Push Docker image
run: |
docker push ghcr.io/datawheel/fruity-clickhouse:${{ env.VERSION }}
docker push ghcr.io/datawheel/fruity-clickhouse:latest