Files
py-eagle-mqtt/.gitea/workflows/tag-release.yaml
Renovate Bot a36b9a75f7
Some checks failed
ci / docker (push) Successful in 21s
Bump version / create_release_tag (pull_request) Failing after 35s
chore(deps): update dependency docker/setup-buildx-action to v3.3.0
2024-04-08 09:01:31 +00:00

60 lines
1.7 KiB
YAML

name: Bump version
on:
pull_request:
types:
- closed
branches:
- master
jobs:
create_release_tag:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4.1.1
with:
ref: ${{ github.event.pull_request.merge_commit_sha }}
fetch-depth: '0'
- name: Create Release Tag
id: taggerFinal
uses: anothrNick/github-tag-action@1.67.0
with:
GITHUB_TOKEN: ${{ secrets.REPO_PUSH_TOKEN }}
WITH_V: true
GIT_API_TAGGING: false
- name: Docker meta
id: meta
uses: docker/metadata-action@v5.5.1
with:
# list of Docker images to use as base name for tags
images: |
harbor.evanshome.io/library/py-eagle-mqtt
# generate Docker tags based on the following events/attributes
flavor: |
latest=true
tags: |
type=schedule
type=ref,event=branch
type=ref,event=pr
type=raw,value=${{ steps.taggerFinal.outputs.new_tag }}
type=semver,pattern={{raw}}
type=semver,pattern={{version}}
type=sha
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.3.0
- name: Login to Harbor
uses: docker/login-action@v3.1.0
with:
registry: harbor.evanshome.io
username: ${{ secrets.HARBOR_USERNAME }}
password: ${{ secrets.HARBOR_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v5.3.0
with:
context: ./Docker/
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}