Skip to content

Bump github.com/spf13/viper from 1.16.0 to 1.17.0 (#47) #74

Bump github.com/spf13/viper from 1.16.0 to 1.17.0 (#47)

Bump github.com/spf13/viper from 1.16.0 to 1.17.0 (#47) #74

Workflow file for this run

name: publish
on:
workflow_dispatch:
release:
types: [ published ]
push:
branches: [ develop ]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
publish:
runs-on: ubuntu-22.04
permissions:
contents: read
id-token: write
packages: write
steps:
- uses: actions/checkout@v3
- uses: docker/metadata-action@v4
id: meta
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: depot/setup-action@v1
- uses: depot/build-push-action@v1
with:
project: ${{ secrets.DEPOT_PROJECT }}
context: .
push: ${{ github.event_name != 'pull_request' }}
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
provenance: false
build-args: |
BUILDTIME=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
VERSION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
REVISION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }}