From e5e61688dd7d9058b2d75e2537703e34673a17f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torsten=20B=C3=B8gh=20K=C3=B6ster?= Date: Fri, 12 Apr 2024 21:32:41 +0200 Subject: [PATCH] add arm build actions --- .github/dependabot.yml | 15 ++++++++++++++ .github/workflows/ci.yaml | 20 +++++++++++++++++++ .github/workflows/release.yaml | 36 ++++++++++++++++++++++++++++++++++ 3 files changed, 71 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/ci.yaml create mode 100644 .github/workflows/release.yaml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..18e6963 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,15 @@ + +version: 2 +updates: + - package-ecosystem: "docker" + directory: "/" + schedule: + interval: "weekly" + reviewers: + - "tboeghk" + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + reviewers: + - "tboeghk" diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..e35741f --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,20 @@ +name: continuous integration + +on: + push: + branches: + - master + - main + - feature/** + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: build Docker file + uses: docker/build-push-action@v5 + with: + push: false diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..8ff3ca7 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,36 @@ +name: release +on: + workflow_dispatch: + +jobs: + release: + runs-on: ubuntu-latest + + steps: + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Log in to GitHub Docker Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - uses: actions/checkout@v4 + + - id: determine-tag + name: Determine Docker tag + run: echo "::set-output name=tag::$(date +%Y-%m-%d)" + + - name: build Docker file + uses: docker/build-push-action@v5 + with: + push: true + platforms: linux/arm64, linux/amd64 + tags: | + ghcr.io/${{ github.repository }}:${{ env.build_tag }} + ghcr.io/${{ github.repository }}:latest