Update docker/build-push-action action to v7 #434
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: Go | |
| on: | |
| push: | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@master | |
| - name: Build & Push docker image | |
| id: build_docker | |
| uses: docker/build-push-action@v7 | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_PASSWORD }} | |
| repository: ${{github.repository}} | |
| push: true | |
| tag_with_ref: true | |
| add_git_labels: true | |
| - name: Create Release | |
| id: create_release | |
| if: github.ref == 'refs/heads/master' | |
| uses: actions/create-release@latest | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tag_name: v1.0.${{ github.run_number }} | |
| release_name: Release v1.0.${{ github.run_number }} | |
| body: | | |
| Samba config kube pvc v1.0.${{ github.run_number }} | |
| draft: false | |
| prerelease: false | |
| - name: Push docker image release | |
| id: push_docker_release | |
| if: github.ref == 'refs/heads/master' | |
| uses: docker/build-push-action@v7 | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_PASSWORD }} | |
| repository: ${{github.repository}} | |
| push: true | |
| tags: v1.0.${{ github.run_number }} | |
| add_git_labels: true | |