зеркало из https://github.com/microsoft/CCF.git
Try to get the tag (#1338)
This commit is contained in:
Родитель
1c9c53546f
Коммит
def709faf3
|
@ -11,17 +11,22 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Truncate ref
|
||||
run:
|
||||
echo "##[set-output name=tag;]${GITHUB_REF#refs/tags/}"
|
||||
id: tref
|
||||
|
||||
- name: Build App CI container
|
||||
run: docker build -f docker/app_ci . --build-arg="extra_vars=--extra-vars ccf_ver=$GITHUB_REF" -t ccfciteam/ccf-app-ci:$GITHUB_REF
|
||||
run: docker build -f docker/app_ci . --build-arg="extra_vars=--extra-vars ccf_ver=${{steps.tref.outputs.tag}}" -t ccfciteam/ccf-app-ci:${{steps.tref.outputs.tag}}
|
||||
|
||||
- name: Build App Run container
|
||||
run: docker build -f docker/app_run . --build-arg="extra_vars=--extra-vars ccf_ver=$GITHUB_REF" -t ccfciteam/ccf-app-run:$GITHUB_REF
|
||||
run: docker build -f docker/app_run . --build-arg="extra_vars=--extra-vars ccf_ver=${{steps.tref.outputs.tag}}" -t ccfciteam/ccf-app-run:${{steps.tref.outputs.tag}}
|
||||
|
||||
- name: Log in
|
||||
run: docker login -u amchamay -p ${{ secrets.DOCKER_HUB_TOKEN }}
|
||||
|
||||
- name: Push App CI container
|
||||
run: docker push ccfciteam/ccf-app-ci:$GITHUB_REF
|
||||
run: docker push ccfciteam/ccf-app-ci:${{steps.tref.outputs.tag}}
|
||||
|
||||
- name: Build App Run container
|
||||
run: docker push ccfciteam/ccf-app-run:$GITHUB_REF
|
||||
run: docker push ccfciteam/ccf-app-run:${{steps.tref.outputs.tag}}
|
Загрузка…
Ссылка в новой задаче