Skip to content

Commit

Permalink
Add Pull Request Reusable Org Workflow (#15)
Browse files Browse the repository at this point in the history
MichaelCduBois authored Jan 3, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 82a7c9b + 47c4411 commit 498b9bf
Showing 2 changed files with 2 additions and 43 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -5,17 +5,4 @@ on:

jobs:
check-formatting:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.23.0"
- name: Install Dependencies
run: make init
- name: Vet Code
run: make vet
- name: Check Go Formatting
run: if [ "$(gofmt -l . | wc -l)" -gt 0 ]; then exit 1; fi
uses: Leagueify/workflows/.github/workflows/pull-request.yml@main
30 changes: 1 addition & 29 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -4,34 +4,6 @@ on:
release:
types: [published]

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Metadata
id: metadata
uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: type=semver,pattern={{version}}
- name: Build Leagueify Account Docker Image and Push
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355
with:
context: .
push: true
tags: ${{ steps.metadata.outputs.tags }}
uses: Leagueify/workflows/.github/workflows/release.yml@main

0 comments on commit 498b9bf

Please sign in to comment.