Skip to content

Commit

Permalink
Merge pull request #1 from anthr76/anthr76/ci
Browse files Browse the repository at this point in the history
Anthr76/ci
  • Loading branch information
anthr76 authored Sep 30, 2024
2 parents 4d6cb6a + 5e183c1 commit 26b24ed
Show file tree
Hide file tree
Showing 9 changed files with 63 additions and 522 deletions.
107 changes: 0 additions & 107 deletions .github/workflows/build.yaml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/check_doc.yml

This file was deleted.

70 changes: 0 additions & 70 deletions .github/workflows/codeql.yml

This file was deleted.

52 changes: 0 additions & 52 deletions .github/workflows/documentation.yml

This file was deleted.

68 changes: 0 additions & 68 deletions .github/workflows/experimental.yaml

This file was deleted.

63 changes: 63 additions & 0 deletions .github/workflows/publish-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: "Container: Image Build"
on:
workflow_dispatch:
inputs:
version:
description: Version to date the container with
required: true
type: string
publish:
description: Publish the container to the registry
required: true
type: boolean
default: false

jobs:
publish-images:
name: Publish Image
permissions:
contents: write
packages: write
runs-on: ubuntu-22.04

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Log into registry ghcr.io
uses: docker/login-action@v3.3.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3.2.0

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.6.1

- name: Log into registry ghcr.io
uses: docker/login-action@v3.3.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and publish image
if: ${{inputs.publish}}
env:
DOCKER_BUILDX_ARGS: "--push"
run: |
make build-webui-image
make multi-arch-image-${{ inputs.version }}-${GITHUB_SHA::7}
- name: Build and publish image
if: ${{inputs.publish}} == false
run: |
make build-webui-image
make multi-arch-image-${{ inputs.version }}-${GITHUB_SHA::7}
Loading

0 comments on commit 26b24ed

Please sign in to comment.