Merge pull request #25 from michaelklose/dependabot/pip/root/pip-25.3 #85
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI to Docker Hub | |
| on: | |
| push: | |
| branches: [ master ] | |
| env: | |
| REGISTRY: docker.io | |
| IMAGE_NAME: michaelklose/netdevops | |
| USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }} | |
| PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }} | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Login to registry ${{ env.REGISTRY }} | |
| uses: docker/login-action@v2 | |
| with: | |
| registry: ${{ env.REGISTRY }} | |
| username: ${{ env.USERNAME }} | |
| password: ${{ env.PASSWORD }} | |
| - name: Build and push Docker image | |
| uses: docker/build-push-action@v2 | |
| with: | |
| context: . | |
| push: true | |
| tags: ${{ env.IMAGE_NAME }}:latest | |
| - name: Image digest | |
| run: echo ${{ steps.docker_build.outputs.digest }} | |
| - name: Update README | |
| uses: peter-evans/dockerhub-description@v2 | |
| with: | |
| username: ${{ env.USERNAME }} | |
| password: ${{ env.PASSWORD }} | |
| repository: ${{ env.IMAGE_NAME }} |