fix CD workflow
This commit is contained in:
parent
feb6c73bf9
commit
ef4c1944be
|
|
@ -26,15 +26,3 @@ jobs:
|
||||||
- name: Build
|
- name: Build
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
- name: Login Registry
|
|
||||||
if: github.event_name == 'push'
|
|
||||||
run: echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login ${{ secrets.REGISTRY_URL }} -u ${{ secrets.REGISTRY_USER }} --password-stdin
|
|
||||||
|
|
||||||
- name: Build & Push CI Image
|
|
||||||
if: github.event_name == 'push'
|
|
||||||
env:
|
|
||||||
IMAGE: ${{ secrets.REGISTRY_URL }}/${{ secrets.IMAGE_NAME }}
|
|
||||||
run: |
|
|
||||||
docker build --build-arg NODE_VERSION=22.14.0 -t $IMAGE:ci-${{ github.sha }} -t $IMAGE:ci-latest .
|
|
||||||
docker push $IMAGE:ci-${{ github.sha }}
|
|
||||||
docker push $IMAGE:ci-latest
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user