Skip to content

Commit

Permalink
Merge pull request #18 from cbdq-io/release/16-20240514T15Z
Browse files Browse the repository at this point in the history
Release/16 20240514 t15 z
  • Loading branch information
dallinb authored May 14, 2024
2 parents 7d0ccbb + 8ff9843 commit 7dbc2d2
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .github/workflows/gitflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Git Flow

on:
# Run on any pull request, or any push of a branch (avoiding pushing of
# tags).
pull_request:
branches:
- '*'
- '**'
push:
branches:
- '*'
- '**'
tags:
- '!*' # This excludes all tags

jobs:
GitFlow:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Retrieve Release Candidate Name
id: version
run: echo "RELEASE_CANDIDATE_TAG=$( make tag )" >> $GITHUB_OUTPUT

- name: Git Flow Action
uses: cbdq-io/gitflow-action@v1
env:
# Setting this environment variable means we can debug by re-running
# workflows and ticking "Enable debug logging".
ACTIONS_RUNNER_DEBUG: ${{ runner.debug }}

GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
with:
# Set the release candidate to be the output of the previous step.
release-candidate: ${{ steps.version.outputs.RELEASE_CANDIDATE_TAG }}
2 changes: 1 addition & 1 deletion .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:

- name: Log in to the Container Registry
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop'
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ pushTag:
releaseBranch:
git flow release start $(TAG)

tag:
@echo $(TAG)
test:
docker compose up -d --wait odoo
docker compose exec odoo /usr/local/bin/restore.sh -a secret -d odoo -f /mnt/restore/odoo.zip
Expand Down

0 comments on commit 7dbc2d2

Please sign in to comment.