Skip to content

Commit

Permalink
Add IPAM
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattes83 committed Jul 5, 2024
1 parent ee5a2b8 commit b853e74
Show file tree
Hide file tree
Showing 24 changed files with 1,109 additions and 319 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: main

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
release:
types:
- published

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Run lint
run: |
make lint
- name: Run tests
run: |
make test
build:
runs-on: ubuntu-latest
steps:
- name: Prepare
id: prep
run: |
DOCKER_IMAGE=ghcr.io/gdatasoftwareag/cluster-api-ionoscloud-controller
VERSION=edge
if [[ $GITHUB_REF == refs/tags/* ]]; then
VERSION=${GITHUB_REF#refs/tags/}
elif [[ $GITHUB_REF == refs/heads/* ]]; then
VERSION=$(echo ${GITHUB_REF#refs/heads/} | sed -r 's#/+#-#g')
elif [[ $GITHUB_REF == refs/pull/* ]]; then
VERSION=pr-${{ github.event.number }}
fi
TAGS="${DOCKER_IMAGE}:${VERSION},${DOCKER_IMAGE}:${VERSION}-${GITHUB_SHA::8}"
echo ::set-output name=version::${VERSION}
echo ::set-output name=tags::${TAGS}
echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
- name: Login to Github Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push to GitHub Packages
uses: docker/build-push-action@v4
with:
push: ${{ github.event_name == 'release' }}
tags: ${{ steps.prep.outputs.tags }}
labels: |
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
15 changes: 0 additions & 15 deletions .github/workflows/codespell.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/conformance-e2e.yaml

This file was deleted.

64 changes: 0 additions & 64 deletions .github/workflows/e2e.yaml

This file was deleted.

57 changes: 0 additions & 57 deletions .github/workflows/image.yaml

This file was deleted.

9 changes: 0 additions & 9 deletions .github/workflows/license.conf

This file was deleted.

14 changes: 0 additions & 14 deletions .github/workflows/license.yml

This file was deleted.

40 changes: 0 additions & 40 deletions .github/workflows/lint.yml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/release.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/test.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/verify.yaml

This file was deleted.

Loading

0 comments on commit b853e74

Please sign in to comment.