Skip to content

Commit

Permalink
fix: fix release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarrosop committed Jun 25, 2024
1 parent e16da18 commit 77298ea
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: nhost/functions
tags: |
type=schedule
type=raw,value=latest,enable=${{ github.event_name == 'push' && endsWith(github.ref, github.event.repository.default_branch) }}
type=ref,event=branch,enable=${{ !endsWith(github.ref, github.event.repository.default_branch) }}
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

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

- name: Login to DockerHub
uses: docker/login-action@v1
with:
Expand All @@ -49,22 +38,18 @@ jobs:
uses: docker/build-push-action@v2
timeout-minutes: 60
with:
# TODO: use cache https://github.com/docker/build-push-action/blob/master/docs/advanced/cache.md
context: .
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: 18-${{ steps.meta.outputs.labels }}
tags: "nhost/functions:18-${{ github.ref_name }}"
file: 18.Dockerfile

- name: Build and publish to Docker Hub
uses: docker/build-push-action@v2
timeout-minutes: 60
with:
# TODO: use cache https://github.com/docker/build-push-action/blob/master/docs/advanced/cache.md
context: .
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: 20-${{ steps.meta.outputs.labels }}
tags: "nhost/functions:20-${{ github.ref_name }}"
file: 20.Dockerfile

0 comments on commit 77298ea

Please sign in to comment.