Skip to content

Commit

Permalink
Update dockerimage.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nabhajit-ray authored Jul 20, 2022
1 parent f3842b2 commit a8f666e
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
# - name: Build and publish
# env:
# TWINE_USERNAME: ${{ secrets.pypi_username }}
# TWINE_PASSWORD: ${{ secrets.pypi_password }}
# run: |
# python setup.py sdist bdist_wheel
# twine upload dist/*
# - name: Setup environment for Docker image publish
# run: |
# echo "GITHUB_REF=${GITHUB_REF:10}" >> $GITHUB_ENV
# - name: Login to Docker Hub
# run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
# - name: Build the tagged Docker image
# run: docker build . --file Dockerfile --tag hewlettpackardenterprise/hpe-oneview-sdk-for-python:${{ env.GITHUB_REF }}-OV7.1
# - name: Push the tagged Docker image
# run: docker push hewlettpackardenterprise/hpe-oneview-sdk-for-python:${{ env.GITHUB_REF }}-OV7.1
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.pypi_username }}
TWINE_PASSWORD: ${{ secrets.pypi_password }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
- name: Setup environment for Docker image publish
run: |
echo "GITHUB_REF=${GITHUB_REF:10}" >> $GITHUB_ENV
- name: Login to Docker Hub
run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
- name: Build the tagged Docker image
run: docker build . --file Dockerfile --tag hewlettpackardenterprise/hpe-oneview-sdk-for-python:${{ env.GITHUB_REF }}-OV7.1
- name: Push the tagged Docker image
run: docker push hewlettpackardenterprise/hpe-oneview-sdk-for-python:${{ env.GITHUB_REF }}-OV7.1

0 comments on commit a8f666e

Please sign in to comment.