Skip to content

chore(actions): bump docker/metadata-action from 4 to 5 (#46) #70

chore(actions): bump docker/metadata-action from 4 to 5 (#46)

chore(actions): bump docker/metadata-action from 4 to 5 (#46) #70

Workflow file for this run

---
name: Publish
"on":
push:
branches:
- "master"
tags:
- "v*"
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
if: github.actor != 'dependabot[bot]'
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
docker.io/tungbeier/gcloud-pubsub-emulator
flavor: |
latest=auto
tags: |
type=semver,pattern={{version}}
type=raw,value=latest,enable={{is_default_branch}}
labels: |
org.opencontainers.image.vendor=tungbeier
[email protected]
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker images
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}