Skip to content
This repository has been archived by the owner on Jan 27, 2025. It is now read-only.

chore(deps): update docker/setup-buildx-action action to v3.1.0 (#29) #35

chore(deps): update docker/setup-buildx-action action to v3.1.0 (#29)

chore(deps): update docker/setup-buildx-action action to v3.1.0 (#29) #35

Workflow file for this run

name: Docker Build
'on':
push:
tags: [ '*.*.*' ]
branches: [ main ]
pull_request:
branches: [ main ]
env:
DOCKER_IMAGE: etriasnl/fluentd
jobs:
build:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v4.1.1
-
uses: docker/setup-buildx-action@v3.1.0
-
id: build
uses: docker/build-push-action@v5
with:
context: .
load: true
# https://docs.docker.com/build/ci/github-actions/cache/#github-cache
cache-from: type=gha
cache-to: type=gha,mode=max
-
run: |
docker run --rm "${{ steps.build.outputs.imageid }}" fluentd --version
docker run --rm "${{ steps.build.outputs.imageid }}" fluent-gem list
-
uses: docker/login-action@v3.0.0
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
if: github.ref_type == 'tag'
-
id: meta
uses: docker/metadata-action@v5.5.1
with:
images: ${{ env.DOCKER_IMAGE }}
if: github.ref_type == 'tag'
-
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
if: github.ref_type == 'tag'