Skip to content

Commit

Permalink
Update test-cd.yml
Browse files Browse the repository at this point in the history
Upgrade artifact download/upload action to v4
  • Loading branch information
kklldog authored Sep 20, 2024
1 parent 05c468b commit 81ca0dc
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/test-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ jobs:

- run: npm install
- run: npm run build
- uses: actions/upload-artifact@v2

- uses: actions/upload-artifact@v4
with:
name: agileconfig-ui
path: src/AgileConfig.Server.UI/react-ui-antd/dist/

build-dotnet-push-to-hub:
needs: build-reactapp
runs-on: ubuntu-latest
Expand All @@ -41,27 +43,32 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.*

- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- uses: actions/download-artifact@v2

- uses: actions/download-artifact@v4
with:
name: agileconfig-ui
path: src/AgileConfig.Server.Apisite/wwwroot/ui

- name: Push to Docker Hub
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_HUB_NAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
repository: kklldog/agile_config
tags: test

- name: Login to ACR and push
uses: aliyun/acr-login@v1
with:
login-server: https://registry.cn-shanghai.aliyuncs.com
username: "${{ secrets.ALI_REGISTRY_USERNAME }}"
password: "${{ secrets.ALI_REGISTRY_PASSWORD }}"

- name: Build and push image
env:
IMAGE_TAG: test
Expand Down

0 comments on commit 81ca0dc

Please sign in to comment.