Skip to content

chore: create dependabot.yaml #4

chore: create dependabot.yaml

chore: create dependabot.yaml #4

Workflow file for this run

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 }}