feat(repo): add Actions workflows to manage versions and releases with Pipeline #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: '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 |