mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-27 08:40:23 +00:00
build: set build environment variables
Currently github action is failing to push the helm charts and some changes from #2151 need to be backported to release-v3.3 branch Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
parent
c92eca57d5
commit
db9f582bfd
9
.github/workflows/publish-artifacts.yaml
vendored
9
.github/workflows/publish-artifacts.yaml
vendored
@ -13,6 +13,7 @@ jobs:
|
|||||||
push:
|
push:
|
||||||
name: Publish artifacts
|
name: Publish artifacts
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.repository == 'ceph/ceph-csi'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
@ -27,9 +28,13 @@ jobs:
|
|||||||
if: github.ref == 'refs/heads/devel'
|
if: github.ref == 'refs/heads/devel'
|
||||||
run: echo "BRANCH_NAME=devel" >> $GITHUB_ENV
|
run: echo "BRANCH_NAME=devel" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Set build environment variables
|
||||||
|
run: |
|
||||||
|
echo "GITHUB_USER=${{ secrets.CEPH_CSI_BOT_NAME }}" >> $GITHUB_ENV
|
||||||
|
echo "GITHUB_EMAIL=${{ secrets.CEPH_CSI_BOT_EMAIL }}" >> $GITHUB_ENV
|
||||||
|
echo "GITHUB_TOKEN=${{ secrets.CEPH_CSI_BOT_TOKEN }}" >> $GITHUB_ENV
|
||||||
- name: publish artifacts
|
- name: publish artifacts
|
||||||
# podman cannot pull images with both tag and digest
|
# podman cannot pull images with both tag and digest
|
||||||
# https://github.com/containers/buildah/issues/1407
|
# https://github.com/containers/buildah/issues/1407
|
||||||
# use docker to build images
|
# use docker to build images
|
||||||
# yamllint disable-line rule:line-length
|
run: CONTAINER_CMD=docker ./deploy.sh
|
||||||
run: GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} CONTAINER_CMD=docker ./deploy.sh
|
|
||||||
|
Loading…
Reference in New Issue
Block a user