Compare commits
No commits in common. "6cb0d053df43b9830f2e2983497a02e4c011fbc9" and "dc2331134e6d09816ce9189d6c38e5d6529911eb" have entirely different histories.
6cb0d053df
...
dc2331134e
@ -1,14 +0,0 @@
|
||||
name: 'Pull Infisical Secrets'
|
||||
description: 'Pulls secrets from local Infisical instance and injects them into the job'
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Fetch secrets from Infisical
|
||||
uses: Infisical/secrets-action@v1.0.8
|
||||
with:
|
||||
domain: "http://infisical.local.chromart.cc"
|
||||
client-id: "9cb72bd7-6e48-4297-a8b3-1d616ea58452"
|
||||
client-secret: "f431d8b6e18e51a858b695afdc30464c618a166ce507b1f55e512e830ebafcf8"
|
||||
env-slug: "prod"
|
||||
project-slug: "chromart-g-do-u"
|
||||
@ -12,7 +12,9 @@ on:
|
||||
ref:
|
||||
required: true
|
||||
type: string
|
||||
secrets: []
|
||||
secrets:
|
||||
token:
|
||||
required: true
|
||||
outputs:
|
||||
is_changed:
|
||||
description: "'true' if the input files are changed otherwise 'false'"
|
||||
@ -30,7 +32,7 @@ jobs:
|
||||
with:
|
||||
repository: ${{ inputs.repository }}
|
||||
ref: ${{ inputs.ref }}
|
||||
token: ${{ github.token }}
|
||||
token: ${{ secrets.token }}
|
||||
|
||||
- name: Get changed files in the doorman-homeassistant folder
|
||||
id: changed-files-specific
|
||||
|
||||
@ -1,54 +0,0 @@
|
||||
name: Docker Publish GHCR
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
repository:
|
||||
required: true
|
||||
type: string
|
||||
ref:
|
||||
required: true
|
||||
type: string
|
||||
image_name:
|
||||
required: true
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Echo test
|
||||
run: echo "${{ inputs.image_name }}"
|
||||
|
||||
- name: Checkout Code to Build
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: ${{ inputs.repository }}
|
||||
ref: ${{ inputs.ref }}
|
||||
token: ${{ github.token }}
|
||||
|
||||
- name: Load Infisical Secrets
|
||||
uses: martin/chromart-gitea-actions/.gitea/actions/infisical-secrets@main
|
||||
|
||||
- name: Log in to the Container registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: martindmtrv
|
||||
# The Infisical secrets action needs to provide a secret named GHCR_PAT
|
||||
password: ${{ env.GHCR_PAT }}
|
||||
|
||||
- name: Extract metadata (tags, labels) for Docker
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
# image_name should be formatted like: user/repo
|
||||
images: ghcr.io/${{ inputs.image_name }}
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
@ -12,7 +12,9 @@ on:
|
||||
image_name:
|
||||
required: true
|
||||
type: string
|
||||
secrets: []
|
||||
secrets:
|
||||
token:
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
@ -26,7 +28,7 @@ jobs:
|
||||
with:
|
||||
repository: ${{ inputs.repository }}
|
||||
ref: ${{ inputs.ref }}
|
||||
token: ${{ github.token }}
|
||||
token: ${{ secrets.token }}
|
||||
|
||||
- name: Build Docker image
|
||||
run: docker buildx build . -t 192.168.1.150:9120/${{ inputs.image_name }}:latest
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user