Skip to content

Bump actions/labeler from 4 to 5 in /.github/workflows #15

Bump actions/labeler from 4 to 5 in /.github/workflows

Bump actions/labeler from 4 to 5 in /.github/workflows #15

Workflow file for this run

name: docker image
# This workflow is triggered on pushes to the repository.
on:
push:
branches:
- "main"
tags:
- "*"
pull_request:
branches:
- 'main'
jobs:
docker:
name: Build Docker image
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
platforms: linux/amd64,linux/arm/v7,linux/arm64
- name: Login to docker hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Collect metadata
uses: docker/metadata-action@v4
id: meta
with:
images: bjornmagnusson/express-demo
tags: |
type=ref,event=pr
type=raw,value={{sha}},event=pr
type=raw,value={{sha}},event=branch
type=semver,pattern={{version}}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}