Skip to content

Commit

Permalink
[ACA-4722] - change gha for test purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikiwanekhyland committed Nov 6, 2023
1 parent ad4498b commit 9236fac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 56 deletions.
8 changes: 7 additions & 1 deletion .github/actions/publish-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,16 @@ runs:
with:
branch_name: ${{ inputs.branch_name }}

- name: Install dependencies and build project
shell: bash
run: |
npm ci
npm run build.release
- name: Build and push multi-platform image
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: ${{ github.event.inputs.dry-run != 'true' }}
tags: ${{ inputs.registry }}/alfresco/alfresco-content-app:${{ env.TAG_VERSION }}
tags: ${{ inputs.registry }}/alfresco/alfresco-content-app:aca-4722-test
55 changes: 0 additions & 55 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,58 +68,3 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
dry-run: ${{ inputs.dry-run-release }}

publish-git-tag:
name: "Publish Git Tag"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'npm'
- uses: ./.github/actions/setup
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
with:
username: ${{ vars.BOT_GITHUB_USERNAME }}
email: ${{ vars.BOT_GITHUB_EMAIL }}
global: true
- name: publish
uses: ./.github/actions/git-tag
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch_name: ${{ env.BRANCH_NAME }}
dry-run: ${{ inputs.dry-run-release }}

publish-libs:
name: "Publish libs to NPM and GitHub registry"
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 2

- name: Setup node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'npm'

- uses: ./.github/actions/setup

- name: publish
uses: ./.github/actions/publish-libs
with:
branch_name: ${{ env.BRANCH_NAME }}
github_token: ${{ secrets.BOT_GITHUB_TOKEN }}
npm_registry_address: ${{ vars.NPM_REGISTRY_ADDRESS }}
npm_registry_token: ${{ secrets.NPM_REGISTRY_TOKEN }}
npm_tag: ${{ env.TAG_NPM }}
dry-run: ${{ inputs.dry-run-release }}

0 comments on commit 9236fac

Please sign in to comment.