chore: create dependabot.yaml #4
This file contains 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
env: | |
USER: devopsiaci | |
REPO: bitbucket-bot | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
name: Create tag release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
- name: Get version from Dockerfile | |
id: appVersion | |
run: echo "::set-output name=version::$(grep -oP 'version=\K.*' Dockerfile | sed -e 's/"//g')" | |
- name: Build and push Docker image | |
uses: docker/build-push-action@v3 | |
with: | |
context: . | |
push: true | |
platforms: linux/amd64 | |
tags: ${{ env.USER }}/${{ env.REPO }}:${{ steps.appVersion.outputs.version }},${{ env.USER }}/${{ env.REPO }}:latest | |
- name: Update Docker registry description | |
uses: peter-evans/dockerhub-description@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
repository: ${{ env.USER }}/${{ env.REPO }} |