Skip to content

Commit

Permalink
Update github workflows for the new directory structure
Browse files Browse the repository at this point in the history
  • Loading branch information
plars committed Oct 20, 2023
1 parent c420dd0 commit 86697fc
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/agent-tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ on:
push:
branches: [ main ]
paths:
- testflinger-agent/**
- agent/**
pull_request:
branches: [ main ]
paths:
- testflinger-agent/**
- agent/**

jobs:
build:
defaults:
run:
working-directory: testflinger-agent
working-directory: agent
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/cli-tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ on:
push:
branches: [ main ]
paths:
- testflinger-cli/**
- cli/**
pull_request:
branches: [ main ]
paths:
- testflinger-cli/**
- cli/**

jobs:
build:
defaults:
run:
working-directory: testflinger-cli
working-directory: cli
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/device-tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ on:
push:
branches: [ main ]
paths:
- testflinger-device-connectors/**
- device-connectors/**
pull_request:
branches: [ main ]
paths:
- testflinger-device-connectors/**
- device-connectors/**

jobs:
build:
defaults:
run:
working-directory: testflinger-device-connectors
working-directory: device-connectors
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/server-charm-check-libs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- main
paths:
- testflinger-server/**
- server/**

jobs:
build:
Expand All @@ -19,6 +19,6 @@ jobs:
- name: Check libraries
uses: canonical/charming-actions/check-libraries@2.4.0
with:
charm-path: testflinger-server/charm
charm-path: server/charm
credentials: "${{ secrets.CHARMHUB_TOKEN }}"
github-token: "${{ secrets.GITHUB_TOKEN }}"
4 changes: 2 additions & 2 deletions .github/workflows/server-charm-release-edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- main
paths:
- testflinger-server/**
- server/**

jobs:
build:
Expand All @@ -19,7 +19,7 @@ jobs:
- name: Upload charm to charmhub
uses: canonical/charming-actions/upload-charm@2.4.0
with:
charm-path: testflinger-server/charm
charm-path: server/charm
credentials: "${{ secrets.CHARMHUB_TOKEN }}"
github-token: "${{ secrets.GITHUB_TOKEN }}"
upload-image: "true"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/server-publish-oci-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches: ["main"]
tags: ["v*.*.*"]
paths:
- testflinger-server/**
- server/**

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Build and push backend Docker image
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: ./testflinger-server
context: ./server
file: Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/server-tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ on:
push:
branches: [ main ]
paths:
- testflinger-server/**
- server/**
pull_request:
branches: [ main ]
paths:
- testflinger-server/**
- server/**

jobs:
build:
defaults:
run:
working-directory: testflinger-server
working-directory: server
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down

0 comments on commit 86697fc

Please sign in to comment.