using tag correctly in selfhost pipeline
This commit is contained in:
parent
1f864f11fb
commit
18dbfa911d
|
@ -18,14 +18,15 @@ jobs:
|
||||||
sudo apt-get install -y jq
|
sudo apt-get install -y jq
|
||||||
release_version=v$(cat lerna.json | jq -r '.version')
|
release_version=v$(cat lerna.json | jq -r '.version')
|
||||||
echo "::set-output name=release_version::$release_version"
|
echo "::set-output name=release_version::$release_version"
|
||||||
|
release_tag=v$release_version
|
||||||
|
|
||||||
# Pull apps and worker images
|
# Pull apps and worker images
|
||||||
docker pull budibase/apps:$release_version
|
docker pull budibase/apps:$release_tag
|
||||||
docker pull budibase/worker:$release_version
|
docker pull budibase/worker:$release_tag
|
||||||
|
|
||||||
# Tag apps and worker images
|
# Tag apps and worker images
|
||||||
docker tag budibase/apps:$release_version $SELF_HOST_TAG
|
docker tag budibase/apps:$release_tag $SELF_HOST_TAG
|
||||||
docker tag budibase/worker:$release_version $SELF_HOST_TAG
|
docker tag budibase/worker:$release_tag $SELF_HOST_TAG
|
||||||
|
|
||||||
# Push images
|
# Push images
|
||||||
docker push --all-tags budibase/apps
|
docker push --all-tags budibase/apps
|
||||||
|
@ -42,6 +43,7 @@ jobs:
|
||||||
# helm package charts/budibase
|
# helm package charts/budibase
|
||||||
# git checkout gh-pages
|
# git checkout gh-pages
|
||||||
# mv budibase-${{ github.steps.version.outputs.release_version }}.tgz docs
|
# mv budibase-${{ github.steps.version.outputs.release_version }}.tgz docs
|
||||||
|
# git add .
|
||||||
# git commit -m "Helm Release: ${{ github.steps.version.outputs.release_version }}"
|
# git commit -m "Helm Release: ${{ github.steps.version.outputs.release_version }}"
|
||||||
# git push
|
# git push
|
||||||
# env:
|
# env:
|
||||||
|
|
Loading…
Reference in New Issue