add package version extraction to docker push job
Compile the repository / compile (push) Successful in 9s
Details
Compile the repository / compile (push) Successful in 9s
Details
This commit is contained in:
parent
2c09033c3f
commit
1e6a75687a
|
@ -19,9 +19,11 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Get Package Version
|
||||
run: VERSION = node -p "require('./package.json').version"
|
||||
- name: Log in to the Container registry
|
||||
run: docker login -u ${{ env.USER }} -p ${{ secrets.TOKEN }} ${{ env.REGISTRY }}
|
||||
- name: Build Container
|
||||
run: docker build -t "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest" .
|
||||
run: docker build -t "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest" -t "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }}".
|
||||
- name: Push Container
|
||||
run: docker push "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest"
|
||||
|
|
Loading…
Reference in New Issue