Skip to content

chore(deps): bump docker/setup-buildx-action from 2 to 3 #374

chore(deps): bump docker/setup-buildx-action from 2 to 3

chore(deps): bump docker/setup-buildx-action from 2 to 3 #374

Workflow file for this run

on:
push:
branches:
- 'main'
- 'features/**'
- 'feature/**'
- 'feat/**'
- 'fix/**'
- 'hotfix/**'
pull_request:
types: [ assigned, opened, synchronize, reopened ]
release:
types: [ prereleased, released ]
name: Main
jobs:
pr-style:
if: github.event_name == 'pull_request'
uses: numary/gh-workflows/.github/workflows/pr-style.yml@main
lint:
uses: numary/gh-workflows/.github/workflows/golang-lint.yml@main
test:
uses: numary/gh-workflows/.github/workflows/golang-test.yml@main

Check failure on line 25 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

error parsing called workflow ".github/workflows/main.yml" -> "numary/gh-workflows/.github/workflows/golang-test.yml@main" : workflow was not found. See https://docs.github.com/actions/learn-github-actions/reusing-workflows#access-to-reusable-workflows for more information.
goreleaser-build:
if: github.event_name != 'release'
uses: numary/gh-workflows/.github/workflows/goreleaser-build.yml@main
needs:
- lint
- test
goreleaser-release:
if: github.event_name == 'release'
uses: numary/gh-workflows/.github/workflows/goreleaser-release.yml@main
secrets:
FURY_TOKEN: ${{ secrets.FURY_TOKEN }}
NUMARY_GITHUB_TOKEN: ${{ secrets.NUMARY_GITHUB_TOKEN }}
needs:
- lint
- test
docker-build-push:
runs-on: ubuntu-latest
needs:
- lint
- test
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
cache: true
- run: go mod vendor
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: "NumaryBot"
password: ${{ secrets.NUMARY_GITHUB_TOKEN }}
- if: github.event.action == 'released'
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/formancehq/payments:latest,ghcr.io/formancehq/payments:${{ github.event.release.tag_name }}
build-args: |
APP_SHA=${{ github.sha }}
VERSION=${{ github.event.release.tag_name }}
- if: github.event.action == 'prereleased'
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/formancehq/payments:${{ github.event.release.tag_name }}
build-args: |
APP_SHA=${{ github.sha }}
VERSION=${{ github.event.release.tag_name }}
- if: github.event.action != 'released' || github.event.action != 'prereleased'
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/formancehq/payments:${{ github.sha }}
build-args: |
APP_SHA=${{ github.sha }}
VERSION=develop