fix: revert cicd changes #14

Merged
t.behrendt merged 5 commits from fix-revert-cicd-changes into main 2024-08-11 12:36:34 +02:00
Showing only changes of commit 16acb0fe80 - Show all commits

View File

@@ -1,11 +1,9 @@
name: CD
on:
workflow_run:
workflows: ["CI"]
branches: [main]
types:
- completed
push:
branches:
- main
env:
DOCKER_REGISTRY: gitea.t000-n.de
@@ -38,12 +36,13 @@ jobs:
/go_cache
key: go_path-${{ steps.hash-go.outputs.hash }}
restore-keys: |-
go_cache-${{ steps.hash-go.outputs.hash }}
go_cache-${{ steps.hash-go.outputs.hash }}
- name: build
run: make build
- name: test
run: make test
build_and_push:
name: Build and push
requires:
@@ -52,26 +51,26 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Registry
uses: docker/login-action@v2
with:
registry: ${{ env.DOCKER_REGISTRY }}
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Get Metadata
id: meta
run: |
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}' | tr '[:upper:]' '[:lower:]') >> $GITHUB_OUTPUT
echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
- name: Build and push
uses: docker/build-push-action@v4
with: