Skip to content

feat(repo): add Actions workflows to manage versions and releases with Pipeline #3

feat(repo): add Actions workflows to manage versions and releases with Pipeline

feat(repo): add Actions workflows to manage versions and releases with Pipeline #3

Workflow file for this run

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