Skip to content

Commit

Permalink
ci: standardize ci
Browse files Browse the repository at this point in the history
  • Loading branch information
shipperizer committed May 20, 2024
1 parent d18f3c7 commit e7147b0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
name: Push (main)
name: CI

# When pushing to the "main" branch, we:
# * build the rock image
# * publish the image
# * scan the image and upload the artifacts to the repository

on:
pull_request:
push:
branches:
- main
paths:
- "rockcraft.yaml"
- ".github/workflows/**.yaml"
Expand All @@ -19,9 +18,11 @@ jobs:
uses: ./.github/workflows/build.yaml

publish:
if: github.ref == 'refs/heads/main'
needs: build
uses: ./.github/workflows/publish.yaml

scan:
if: github.ref == 'refs/heads/main'
needs: publish
uses: ./.github/workflows/scan.yaml
16 changes: 0 additions & 16 deletions .github/workflows/push_any.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
![Latest Version](https://img.shields.io/badge/dynamic/yaml?url=https%3A%2F%2Fraw.githubusercontent.com%2Fcanonical%2Fhydra-rock%2Fmain%2Frockcraft.yaml&query=%24.version&label=Release&color=red)
[![License](https://img.shields.io/github/license/canonical/hydra-rock?label=License)](https://github.com/canonical/hydra-rock/blob/main/LICENSE)

[![Build](https://img.shields.io/github/actions/workflow/status/canonical/hydra-rock/push_main.yaml?label=Build)](https://github.com/canonical/hydra-rock/actions/workflows/push_main.yaml)
[![CI](https://github.com/canonical/hydra-rock/actions/workflows/ci.yaml/badge.svg)](https://github.com/canonical/hydra-rock/actions/workflows/ci.yaml)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-%23FE5196.svg)](https://conventionalcommits.org)

Expand Down

0 comments on commit e7147b0

Please sign in to comment.