Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/npm_and_yarn/babel/traverse-7.25.4
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwoberts authored Sep 11, 2024
2 parents 3b24a12 + 85ce362 commit d157cd4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: build

on:
release:
types: [created]
push:
branches:
- main
tags:
- "v*" # Triggers on version tags like v1.0.0
- stable
pull_request:
branches:
- main
Expand Down Expand Up @@ -99,7 +100,7 @@ jobs:

- run: echo ${{ steps.vars.outputs.sha7 }} > ./out/sha7

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: fider-image
path: out/
Expand Down Expand Up @@ -132,7 +133,7 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 22.x
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: fider-image
path: ./out
Expand Down Expand Up @@ -186,7 +187,7 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 22.x
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: fider-image
path: ./out
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
cache-to: type=gha,mode=max

- name: build and push docker image (push branch)
if: ${{ github.event.workflow_run.event == 'push' && !startsWith(github.ref, 'refs/tags/') }}
if: ${{ github.event.workflow_run.event == 'push' }}
uses: docker/build-push-action@v3
with:
push: true
Expand All @@ -58,13 +58,13 @@ jobs:
cache-to: type=gha,mode=max

- name: build and push docker image (push tag)
if: ${{ github.event.workflow_run.event == 'push' && startsWith(github.ref, 'refs/tags/') }}
if: ${{ github.event.workflow_run.event == 'release' }}
uses: docker/build-push-action@v3
with:
push: true
context: .
build-args: COMMITHASH=${{ github.event.workflow_run.head_sha }}
platforms: linux/amd64,linux/arm64/v8
tags: getfider/fider:${{ github.ref_name }}
tags: getfider/fider:${{ github.event.workflow_run.display_title }}
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit d157cd4

Please sign in to comment.