Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: dockerfile location #3

Merged
merged 1 commit into from
Dec 19, 2023
Merged

fix: dockerfile location #3

merged 1 commit into from
Dec 19, 2023

Conversation

hutchic
Copy link
Contributor

@hutchic hutchic commented Dec 19, 2023

No description provided.

@hutchic hutchic enabled auto-merge (squash) December 19, 2023 02:08
@hutchic hutchic added the bug Something isn't working label Dec 19, 2023
@hutchic
Copy link
Contributor Author

hutchic commented Dec 19, 2023

Template Repository Sync Report

Found 9 files to update in 1 repositories

temp

.releaserc
--- .releaserc
+++ .releaserc
@@ -0,0 +1,45 @@
+{
+  "branches": ["main"],
+  "tagFormat": "${version}",
+  "repositoryUrl": "https://github.com/hutchic-org/template-ghcr-release.git",
+  "plugins": [
+    [
+      "@semantic-release/commit-analyzer",
+      {
+        "preset": "conventionalcommits",
+        "releaseRules": [
+          { "breaking": true, "release": "major" },
+          { "revert": true, "release": "patch" },
+          { "type": "build", "release": "patch" },
+          { "type": "docs", "release": "patch" },
+          { "type": "feat", "release": "minor" },
+          { "type": "fix", "release": "patch" },
+          { "type": "perf", "release": "patch" },
+          { "type": "refactor", "release": "patch" },
+          { "type": "chore", "release": "patch" }
+        ]
+      }
+    ],
+    [
+      "@semantic-release/release-notes-generator",
+      {
+        "preset": "conventionalcommits",
+        "presetConfig": {
+          "types": [
+            { "type": "build", "section": "Build", "hidden": false },
+            { "type": "chore", "section": "Chores", "hidden": false },
+            { "type": "ci", "section": "CI/CD", "hidden": false },
+            { "type": "docs", "section": "Docs", "hidden": false },
+            { "type": "feat", "section": "Features", "hidden": false },
+            { "type": "fix", "section": "Bug Fixes", "hidden": false },
+            { "type": "perf", "section": "Performance", "hidden": false },
+            { "type": "refactor", "section": "Refactor", "hidden": false },
+            { "type": "style", "section": "Code Style", "hidden": false },
+            { "type": "test", "section": "Tests", "hidden": false }
+          ]
+        }
+      }
+    ],
+    "@semantic-release/github",
+  ]
+}
.github/labeler.yml
--- .github/labeler.yml
+++ .github/labeler.yml
@@ -0,0 +1,9 @@
+---
+csv:
+- '**/*.csv'
+docs:
+- '**/*.md'
+github_actions:
+- .github/**
+python:
+- '**/*.py'
.github/pr-labeler.yml
--- .github/pr-labeler.yml
+++ .github/pr-labeler.yml
@@ -0,0 +1,3 @@
+---
+bug: [bug/*, fix/*]
+feature: [feature/*, feat/*]
.github/workflows/automerge.yml
--- .github/workflows/automerge.yml
+++ .github/workflows/automerge.yml
@@ -0,0 +1,31 @@
+---
+# This file is sync'd from https://github.com/hutchic-org/template-template
+# Do not edit this file from anywhere else but that repository it will be overwritten
+name: Auto Actions
+
+on: pull_request_target # yamllint disable-line rule:truthy
+
+permissions:
+  contents: write
+  pull-requests: write
+
+jobs:
+  dependabot-automerge:
+    runs-on: ubuntu-latest
+    if: ${{ github.actor == 'dependabot[bot]' }}
+    steps:
+    - name: Gather Dependabot metadata
+      id: metadata
+      uses: dependabot/[email protected]
+      with:
+        github-token: ${{ secrets.GITHUB_TOKEN }}
+    - name: Approve PR
+      run: gh pr review --approve "$PR_URL"
+      env:
+        PR_URL: ${{github.event.pull_request.html_url}}
+        GITHUB_TOKEN: ${{secrets.AUTO_MERGE_TOKEN}}
+    - name: Enable auto-merge
+      run: gh pr merge --auto --squash "$PR_URL"
+      env:
+        PR_URL: ${{github.event.pull_request.html_url}}
+        GITHUB_TOKEN: ${{secrets.AUTO_MERGE_TOKEN}}
.github/workflows/autoupdate.yml
--- .github/workflows/autoupdate.yml
+++ .github/workflows/autoupdate.yml
@@ -0,0 +1,22 @@
+---
+# This file is sync'd from https://github.com/hutchic-org/template-template
+# Do not edit this file from anywhere else but that repository it will be overwritten
+name: Auto update PR's
+
+on: # yamllint disable-line rule:truthy
+  push:
+    branches:
+      - 'main'
+jobs:
+  autoupdate:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Automatically update PR
+        uses: adRise/[email protected]
+        with:
+          token: ${{ secrets.AUTO_MERGE_TOKEN }}
+          base: 'main'
+          required_approval_count: 0
+          require_passed_checks: true
+          sort: 'created'
+          direction: 'desc'
.github/workflows/labeller.yml
--- .github/workflows/labeller.yml
+++ .github/workflows/labeller.yml
@@ -0,0 +1,18 @@
+---
+name: Pull Request Labeler
+
+on: [pull_request] # yamllint disable-line rule:truthy
+
+jobs:
+  label:
+    name: auto label
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/labeler@v5
+      continue-on-error: true
+      with:
+        repo-token: ${{ secrets.AUTO_MERGE_TOKEN }}
+    - uses: TimonVS/[email protected]
+      continue-on-error: true
+      env:
+        GITHUB_TOKEN: ${{ secrets.AUTO_MERGE_TOKEN }}
.github/workflows/pre-commit.yml
--- .github/workflows/pre-commit.yml
+++ .github/workflows/pre-commit.yml
@@ -0,0 +1,27 @@
+---
+name: pre-commit
+
+on:  # yamllint disable-line rule:truthy
+  pull_request:
+
+jobs:
+  lint-pr-title:
+    name: Validate PR titles
+    runs-on: ubuntu-latest
+    if: ${{ github.actor != 'pull[bot]' }}
+    steps:
+    - run: echo "$github.actor"
+    - uses: amannn/[email protected]
+      env:
+        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+  pre-commit:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/[email protected]
+    - uses: actions/[email protected]
+      with:
+        python-version: '3.8'
+    - run: pip install 'virtualenv<20.11.0'
+    - uses: pre-commit/[email protected]
+      with:
+        token: ${{ secrets.GITHUB_TOKEN }}
.github/workflows/release.yml
--- .github/workflows/release.yml
+++ .github/workflows/release.yml
@@ -0,0 +1,66 @@
+name: Release
+
+on:
+  workflow_dispatch:
+  push:
+    branches:
+      - main
+  pull_request:
+    branches:
+      - main
+
+permissions:
+  packages: write
+  contents: write
+  pull-requests: write
+  issues: write
+
+jobs:
+  release:
+    runs-on: ubuntu-latest
+    steps:
+    - name: Checkout code
+      uses: actions/checkout@v4
+
+    - name: Setup Docker Buildx
+      uses: docker/setup-buildx-action@v3
+
+    - name: Login to GitHub Container Registry
+      uses: docker/login-action@v3
+      with:
+        registry: ghcr.io
+        username: ${{ github.actor }}
+        password: ${{ secrets.GITHUB_TOKEN }}
+
+    - name: Github Release
+      id: release
+      uses: ahmadnassri/[email protected]
+      env:
+        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
+    - name: Set Docker tags
+      id: set_tags
+      run: |
+        if [ "${{ steps.release.outputs.release-version }}" != "" ]; then
+          echo "TAGS=type=raw,value=latest,type=sha,type=semver,pattern={{version}},value=${{ steps.release.outputs.release-version }}" >> $GITHUB_ENV
+        else
+          echo "TAGS=type=raw,value=latest,type=sha" >> $GITHUB_ENV
+        fi
+
+    - name: Docker meta
+      id: meta
+      uses: docker/metadata-action@v5
+      with:
+        images: ghcr.io/hutchic-org/${{ github.event.repository.name }}
+        tags: ${{ env.TAGS }}
+
+    - name: Build and Push Docker image
+      if: ${{ steps.release.outputs.release-version != '' && github.event_name == 'push' && github.ref == 'refs/heads/main' }}
+      uses: docker/build-push-action@v5
+      with:
+        context: ./
+        push: true
+        tags: ${{ steps.meta.outputs.tags }}
+        labels: ${{ steps.meta.outputs.labels }}
+        cache-from: type=gha,ref=ghcr.io/hutchic-org/${{ github.event.repository.name }}
+        cache-to: type=gha,mode=max
.github/workflows/sync.yml
--- .github/workflows/sync.yml
+++ .github/workflows/sync.yml
@@ -0,0 +1,21 @@
+---
+name: Sync the template repository
+
+on: # yamllint disable-line rule:truthy
+  pull_request:
+  push:
+    branches: main
+
+jobs:
+  sync:
+    runs-on: ubuntu-latest
+
+    steps:
+    - name: Queue
+      uses: ahmadnassri/[email protected]
+    - name: Checkout
+      uses: actions/[email protected]
+    - name: Sync
+      uses: ahmadnassri/[email protected]
+      with:
+        github-token: ${{ secrets.GH_TOKEN }}

@hutchic hutchic merged commit 862910f into main Dec 19, 2023
6 checks passed
@hutchic hutchic deleted the fix/dockerfile branch December 19, 2023 02:08
Copy link
Contributor

🎉 This PR is included in version 1.0.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant