Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
[fix] fix actions
Browse files Browse the repository at this point in the history
  • Loading branch information
boristane committed Oct 9, 2022
1 parent dc1e3c1 commit e6e6daa
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 34 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,30 +158,30 @@ jobs:
publish-docker-image:
needs: [create-release]
runs-on: ubuntu-latest

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
${{ secrets.DOCKER_ORG }}/${{ secrets.DOCKER_REPOSITORY }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64
tags: ${{ steps.meta.outputs.tags }}
push: true
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
${{ secrets.DOCKER_ORG }}/${{ secrets.DOCKER_REPOSITORY }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64
tags: ${{ steps.meta.outputs.tags }}
push: true

16 changes: 8 additions & 8 deletions .github/workflows/update-homebrew-formula.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
runs-on: macOS-latest
steps:
- name: Release Homebrew Formula
if: github.event.release.prerelease != true
uses: garden-io/update-homebrew-action@v1
with:
packageName: 'cli'
templatePath: 'Formula/baselime.rb'
tapRepo: 'baselime/homebrew-tap'
srcRepo: 'baselime/cli'
authToken: ${{ secrets.GITHUB_TOKEN }}
if: github.event.release.prerelease != true
uses: garden-io/update-homebrew-action@v1
with:
packageName: 'cli'
templatePath: 'Formula/baselime.rb'
tapRepo: 'baselime/homebrew-tap'
srcRepo: 'baselime/cli'
authToken: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e6e6daa

Please sign in to comment.