Skip to content

Commit

Permalink
update to white list
Browse files Browse the repository at this point in the history
  • Loading branch information
fredclausen committed Oct 26, 2023
1 parent ad3eab1 commit 2dbfb45
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 27 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,28 @@ on:
inputs:
reason:
required: false
description: 'Reason for running this workflow'
description: "Reason for running this workflow"
push:
branches:
- dev
# Don't trigger if it's just a documentation update
paths-ignore:
- '**.md'
- '**.MD'
- '**.yml'
- 'LICENSE'
- '.gitattributes'
- '.gitignore'
- '.dockerignore'
paths:
- "rust/**"
- "Dockerfile**"
- "rootfs/**"

# Set workflow-wide environment variables
# - REPO: repo name on dockerhub
# - IMAGE: image name on dockerhub
env:
# DOCKERHUB_REPO: rhodan76
# DOCKERHUB_IMAGE: vrs
# DOCKERHUB_REPO: rhodan76
# DOCKERHUB_IMAGE: vrs
GHCR_IMAGE: sdr-enthusiasts/vrs
GHCR_REGISTRY: ghcr.io
GH_LABEL: dev
GHCR_TAG: dev

jobs:

workflow-dispatch:
name: Triggered via Workflow Dispatch?
# only run this step if workflow dispatch triggered
Expand Down Expand Up @@ -62,10 +57,9 @@ jobs:

deploy_ghcr_multiarch:
name: Deploy ghcr.io (Multi-Arch)
# needs: [hadolint]
# needs: [hadolint]
runs-on: ubuntu-latest
steps:

# Check out our code
- name: Checkout
uses: actions/checkout@v4
Expand Down
20 changes: 7 additions & 13 deletions .github/workflows/deploy-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,28 @@ on:
inputs:
reason:
required: false
description: 'Reason for running this workflow'
description: "Reason for running this workflow"
push:
branches:
- main
# Don't trigger if it's just a documentation update
paths-ignore:
- '**.md'
- '**.MD'
- '**.yml'
- 'LICENSE'
- '.gitattributes'
- '.gitignore'
- '.dockerignore'
paths:
- "rust/**"
- "Dockerfile**"
- "rootfs/**"

# Set workflow-wide environment variables
# - REPO: repo name on dockerhub
# - IMAGE: image name on dockerhub
env:
# DOCKERHUB_REPO: sdr-enthusiasts
# DOCKERHUB_IMAGE: vrs
# DOCKERHUB_REPO: sdr-enthusiasts
# DOCKERHUB_IMAGE: vrs
GHCR_IMAGE: sdr-enthusiasts/vrs
GHCR_REGISTRY: ghcr.io
GH_LABEL: main
GHCR_TAG: latest

jobs:

workflow-dispatch:
name: Triggered via Workflow Dispatch?
# only run this step if workflow dispatch triggered
Expand Down Expand Up @@ -65,7 +60,6 @@ jobs:
# needs: [hadolint]
runs-on: ubuntu-latest
steps:

# Check out our code
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit 2dbfb45

Please sign in to comment.