-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (29 loc) · 1.06 KB
/
ghcr_publish.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
name: GHCR Publish
# when a new release is created or new tag is pushed to master
# tag should be in the format v1.0.0
# regex to check the tag format
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
build:
uses: ./.github/workflows/rust_build.yml
publish:
runs-on: ubuntu-latest
needs: build
if: needs.build.result == 'success'
steps:
- name: Checkout the repo
uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: bin/ubuntu-setup.sh
- name: Build and publish scylla image with ver and latest tag
run: sh bin/ghcr-publish.sh scylla_pg_monitor scylla_pg_monitor
- name: Build and publish the pg-migration Docker image
run: sh bin/ghcr-publish.sh scylla_pg_core scylla_pg_migration