Skip to content

Commit

Permalink
Merge pull request #33 from HewlettPackard/jm-actions
Browse files Browse the repository at this point in the history
Migrate from circleci to github actions
  • Loading branch information
jonmcquillan authored Oct 30, 2024
2 parents e974fa5 + ad04610 commit 0dcec11
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 56 deletions.
49 changes: 0 additions & 49 deletions .circleci/config.yml

This file was deleted.

16 changes: 10 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
version: 2
updates:
- package-ecosystem: cargo
open-pull-requests-limit: 25
directory: /
registries: []
schedule:
interval: daily
- package-ecosystem: cargo
open-pull-requests-limit: 25
directory: /
registries: []
schedule:
interval: daily
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# (c) Copyright 2024 Hewlett Packard Enterprise Development LP

name: Release

on:
release:
types: [created]

jobs:
upload_artifacts:
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always

steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Update Tag
shell: bash
run: |
version=$(echo "$GITHUB_REF" | sed 's/refs\/tags\/v//')
sed -i "s/version = \"0.1.0\"/version = \"$version\"/" Cargo.toml
- name: Cargo Login
run: cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Publish
run: cargo publish --allow-dirty --locked
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# (c) Copyright 2024 Hewlett Packard Enterprise Development LP

name: Rust Checks

on:
pull_request:

jobs:
build:
name: Rust Checks
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
#TODO fix formatting in a separate pr after moving to actions
# - name: Rust Format
# run: cargo fmt --check
- name: Clippy
run: cargo clippy
- name: Test
run: cargo test --verbose
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# dockerfile-parser-rs

[![CircleCI](https://circleci.com/gh/HewlettPackard/dockerfile-parser-rs.svg?style=svg)](https://circleci.com/gh/HewlettPackard/dockerfile-parser-rs)
[![docs.rs](https://docs.rs/dockerfile-parser/badge.svg)](https://docs.rs/dockerfile-parser/)

A pure Rust library for parsing and inspecting Dockerfiles, useful for
Expand Down

0 comments on commit 0dcec11

Please sign in to comment.