Skip to content

Commit

Permalink
Rework release flow
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxWinterstein committed Nov 26, 2024
1 parent 6fd51ab commit 00b2504
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-buld-push-as-testing.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build docker images - and push as test
name: Build docker images - and push as test - manual

on:
# Allows you to run this workflow manually from the Actions tab
Expand Down
15 changes: 5 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
name: build-and-push
name: build-and-push-master

on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
version:
description: "Image Tag"
required: true

push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
Expand All @@ -31,5 +27,4 @@ jobs:
platforms: linux/amd64,linux/arm/v7,linux/arm64
push: true
tags: |
maxwinterstein/toogoodtogo-ha-mqtt-bridge:${{ github.event.inputs.version }}
maxwinterstein/toogoodtogo-ha-mqtt-bridge:latest
maxwinterstein/toogoodtogo-ha-mqtt-bridge:master
32 changes: 32 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build docker images - and push as test

on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch the entire history to include the .git directory
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm/v7,linux/arm64
push: true
tags: |
maxwinterstein/toogoodtogo-ha-mqtt-bridge:test

0 comments on commit 00b2504

Please sign in to comment.