Skip to content

Commit

Permalink
Merge pull request #62 from philipcristiano/rust-workflow
Browse files Browse the repository at this point in the history
chore: Update to rust workflow
  • Loading branch information
philipcristiano authored Dec 5, 2023
2 parents 28da0fd + f91b4c9 commit 90dca76
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ jobs:
with:
automerge: true

check-for-cc:
runs-on: ubuntu-latest
steps:
- name: check-for-cc
id: check-for-cc
uses: agenthunt/[email protected]

docker_build:
uses: "philipcristiano/workflows/.github/workflows/docker-build.yml@main"
with:
Expand Down
17 changes: 13 additions & 4 deletions .github/workflows/push_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,19 @@ on:
push:
branches:
- main
tags:
- "*"

permissions:
pull-requests: write
contents: write

jobs:

docker_push:
name: "Push docker image"
uses: "philipcristiano/workflows/.github/workflows/docker-build-push.yml@main"

needs: [flake, rust]
with:
repository: philipcristiano/hello_idc
repository: ${{ github.repository }}
timeout: 25

secrets:
Expand All @@ -24,6 +26,13 @@ jobs:
rust:
uses: "philipcristiano/workflows/.github/workflows/rust.yml@main"

rust_release:
uses: "philipcristiano/workflows/.github/workflows/rust_release.yml@main"
needs: [flake, rust]
secrets:
WF_GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

flake:
uses: "philipcristiano/workflows/.github/workflows/nix.yml@main"
with:
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# release-plz creates the release/tag which won't trigger again for the commit for `push_main`
name: Docker Release

on:
release:
types: [published]
push:
tags:
- "*"

jobs:

docker_push:
name: "Push docker image"
uses: "philipcristiano/workflows/.github/workflows/docker-build-push.yml@main"
with:
repository: ${{ github.repository }}
timeout: 25

secrets:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
name = "hello_idc"
version = "0.1.0"
edition = "2021"
description = "Hello World with OIDC auth"
license = "Apache-2.0"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down

0 comments on commit 90dca76

Please sign in to comment.