Skip to content

Commit

Permalink
Fix docker workflows not working
Browse files Browse the repository at this point in the history
  • Loading branch information
No767 committed Aug 14, 2024
1 parent 1660cac commit 0bbb7dd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@ name: Docker
on:
push:
branches: [main]
tags:
- 'v*'
tags: ["v*"]

jobs:
Build-and-Push:
runs-on: ubuntu-latest

# We want to filter out dependabot and pre-commit
# automated pushes to main
if: ${{ github.actor != 'dependabot[bot]'}} && ${{ github.actor != 'pre-commit-ci[bot]'}}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -44,7 +47,6 @@ jobs:
context: .
file: ./docker/Dockerfile
push: true
cache-from: type=registry,ref=ghcr.io/${{ github.repository_owner }}/rodhaj:bot-build-cache
cache-to: type=registry,mode=max,ref=ghcr.io/${{ github.repository_owner }}/rodhaj:bot-build-cache
tags: ${{ steps.meta.outputs.tags }}
cache-from: type=registry,ref=ghcr.io/${{ github.repository_owner }}/rodhaj-build-cache:bot
cache-to: type=registry,mode=max,ref=ghcr.io/${{ github.repository_owner }}/rodhaj-build-cache:bot
labels: ${{ steps.meta.outputs.labels }}
7 changes: 2 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,8 @@ jobs:


Release:
permissions:
contents: write
needs: Bundle

runs-on: ubuntu-latest
needs: Bundle
if: contains(github.event.head_commit.message, '#major') || contains(github.event.head_commit.message, '#minor') || contains(github.event.head_commit.message, '#patch')
steps:
- uses: actions/checkout@v4
Expand All @@ -52,7 +49,7 @@ jobs:
uses: anothrNick/[email protected]
id: tag_version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
WITH_V: true
RELEASE_BRANCHES: main

Expand Down

0 comments on commit 0bbb7dd

Please sign in to comment.