Compare commits

13 Commits

Author SHA1 Message Date
Nick Trimborn
36c3489c55 updated workflow
All checks were successful
Docker Push / build (push) Successful in 39s
2023-07-20 11:16:49 +02:00
Nick Trimborn
9213b3900f updated workflow
Some checks failed
Docker Push / build (push) Failing after 32s
2023-07-20 11:13:55 +02:00
Nick Trimborn
c227745639 update meta to match x.x version numbering
Some checks failed
Docker Push / build (push) Failing after 29s
2023-07-20 11:09:34 +02:00
Nick Trimborn
d0fd783e5f updated workflow
Some checks failed
Docker Push / build (push) Failing after 28s
2023-07-20 10:59:04 +02:00
Nick Trimborn
4dc2220ed6 updated workflow
All checks were successful
Docker Push / build (push) Successful in 1m7s
2023-07-20 10:53:37 +02:00
385dd54468 Update .github/workflows/docker-deploy.yaml
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 11s
Docker Push / build (push) Successful in 1m7s
2023-07-20 08:26:43 +00:00
8f2f0db9da Update .github/workflows/docker-deploy.yaml
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 11s
Docker Push / build (push) Successful in 1m7s
2023-07-20 08:23:38 +00:00
97342b3bab Update .github/workflows/docker-deploy.yaml
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 11s
Docker Push / build (push) Failing after 56s
2023-07-20 08:13:57 +00:00
be1bac4d9b updated repo
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 11s
Docker Push / build (push) Successful in 1m7s
2023-07-19 20:02:00 +02:00
f7c499c964 fixed indent
Some checks failed
Docker Push / build (push) Failing after 1m13s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 10s
2023-07-19 19:50:59 +02:00
02d81ce818 fixed indent error
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 11s
2023-07-19 19:48:21 +02:00
e6144a8b99 Merge branch 'main' of https://git.nicktrimborn.de/Nick/tasmota-power-exporter
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 11s
2023-07-19 19:44:41 +02:00
d7ff1fa0bc updated workflow for personal gitea registry 2023-07-19 19:43:45 +02:00
3 changed files with 66 additions and 0 deletions

66
.github/workflows/docker-deploy.yaml vendored Normal file
View File

@@ -0,0 +1,66 @@
name: Docker Push
on:
push:
branches:
- 'main'
tags:
- 'v*'
pull_request:
branches:
- 'main'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
# Install the cosign tool except on PR
# https://github.com/sigstore/cosign-installer
# - name: Install cosign
# if: github.event_name != 'pull_request'
# uses: sigstore/cosign-installer@f3c664df7af409cb4873aa5068053ba9d61a57b6 #v2.6.0
# with:
# cosign-release: 'v1.13.1'
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
# Workaround: https://github.com/docker/build-push-action/issues/461
- name: Setup Docker buildx
uses: docker/setup-buildx-action@79abd3f86f79a9d68a23c75a09a9a85889262adf
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: git.nicktrimborn.de
username: ${{ secrets.ACTION_USER }}
password: ${{ secrets.PASSWORD }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
git.nicktrimborn.de/nick/tasmota-power-exporter
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: |
git.nicktrimborn.de/nick/tasmota-power-exporter:latest
${{ steps.meta.outputs.tags }}
#tags: ${{ steps.meta.outputs.tags }}
#tags: git.nicktrimborn.de/nick/tasmota-power-exporter/tasmota-power-exporter:latest
labels: ${{ steps.meta.outputs.labels }}