Skip to content

Commit

Permalink
Remove old workflows, make ci ready for production
Browse files Browse the repository at this point in the history
  • Loading branch information
jpm-canonical committed Sep 30, 2024
1 parent 02e0d3c commit 96ca398
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 221 deletions.
106 changes: 0 additions & 106 deletions .github/workflows/build-amd64.yml

This file was deleted.

106 changes: 0 additions & 106 deletions .github/workflows/build-arm64.yml

This file was deleted.

18 changes: 9 additions & 9 deletions .github/workflows/snap-ci.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Snap CI

on:
# schedule:
# - cron: "20 2 * * 1" # Monday morning 02:20 UTC
schedule:
- cron: "20 2 * * 1" # Monday mornings 02:20 UTC
push:
# branches: [main]
branches: [main]
pull_request:
# branches: [main]
branches: [main]
# Allow manual trigger
workflow_dispatch:

Expand Down Expand Up @@ -37,12 +37,12 @@ jobs:
if-no-files-found: error

- uses: snapcore/action-publish@v1
# if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main'
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
with:
snap: ${{ steps.snapcraft.outputs.snap }}
release: latest/edge/test
release: latest/edge

- name: Setup Go
uses: actions/setup-go@v5
Expand All @@ -63,12 +63,12 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
name: logs_${{matrix.runs.architecture}}
name: logs_${{ github.run_number}}_${{matrix.runs.architecture}}
path: tests/logs/*.log

promote-beta:
# Only promote if we are on the main branch
# if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: [matrix-build]
steps:
Expand All @@ -83,4 +83,4 @@ jobs:
SNAPCRAFT_HAS_TTY: "true"
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
run: |
yes | snapcraft promote chip-tool --from-channel latest/edge/test --to-channel latest/beta/test
yes | snapcraft promote chip-tool --from-channel latest/edge --to-channel latest/beta

0 comments on commit 96ca398

Please sign in to comment.