-
Notifications
You must be signed in to change notification settings - Fork 34
36 lines (32 loc) · 913 Bytes
/
build.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: Tag & build
on:
push:
branches:
- main
paths:
- version.txt
jobs:
tag:
if: ${{ github.repository == 'llaoj/gcopy' }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: /usr/bin/git config --global user.email [email protected]
- run: /usr/bin/git config --global user.name 'GitHub Actions Release Tagger'
- run: hack/release-tag.sh
id: release_tag
outputs:
release_tag: ${{ steps.release_tag.outputs.release_tag }}
build:
needs: tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build gcopy & gcopy-frontend image
run: |
docker login -u ${{ secrets.REGISTRY_USERNAME }} -p ${{ secrets.REGISTRY_PASSWORD }} registry.cn-beijing.aliyuncs.com
make push-container