From 9236faca937cc0cfd2b5940af6a06ff25cf6594d Mon Sep 17 00:00:00 2001 From: DominikIwanek Date: Mon, 6 Nov 2023 14:32:33 +0100 Subject: [PATCH] [ACA-4722] - change gha for test purpose --- .github/actions/publish-image/action.yml | 8 +++- .github/workflows/release.yml | 55 ------------------------ 2 files changed, 7 insertions(+), 56 deletions(-) diff --git a/.github/actions/publish-image/action.yml b/.github/actions/publish-image/action.yml index e9275ce30b..c0a2eac072 100644 --- a/.github/actions/publish-image/action.yml +++ b/.github/actions/publish-image/action.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 565bdf73d2..aafac4945c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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/configure-git-author@v1.35.0 - 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 }}