-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (46 loc) · 1.32 KB
/
release.yaml
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
45
46
47
48
49
50
51
52
53
name: Publish Nx Cloud CE Release
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
#on:
# push:
# tags:
# - 'v*'
permissions: {}
jobs:
retag-oci-images:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # for creating OIDC tokens for signing.
packages: write # used to push images to `ghcr.io` if used.
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: 'Set up skopeo'
uses: warjiang/setup-skopeo@71776e03c10d767c04af8924fe5a67763f9b3d34 # v0.1.3
with:
version: latest
- name: Extract tag and commit SHA
id: vars
run: |
echo "TAG=v0.0.1" >> $GITHUB_ENV
SHORT_SHA=$(git rev-parse --short $GITHUB_SHA)
echo "SHORT_SHA=${SHORT_SHA}" >> $GITHUB_ENV
- name: 'Sync images'
run: |
skopeo --version
echo "short sha ${{ env.SHORT_SHA }}"
echo "tag ${{ env.TAG }}"
# skopeo copy --dest-creds \
# ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} \
# docker://ghcr.io/clementguillot/nx-cloud-ce-server:${{ env.SHORT_SHA }} \
# docker://ghcr.io/clementguillot/nx-cloud-ce-server:${{ env.TAG }}
#publish helm chart