Skip to content

chore(deps): bump actions/checkout from 2.4.0 to 4.2.2 (#58) #87

chore(deps): bump actions/checkout from 2.4.0 to 4.2.2 (#58)

chore(deps): bump actions/checkout from 2.4.0 to 4.2.2 (#58) #87

Workflow file for this run

name: image-build
on:
push:
branches:
- "main"
paths:
- "Dockerfile"
- ".github/workflows/image-build.yaml"
- "!**.md"
jobs:
image-build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.2.2
timeout-minutes: 5
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
timeout-minutes: 5
with:
images: improwised/ghar-image
tags: |
type=raw,value={{branch}}-{{sha}}-{{date 'X'}}
type=raw,value=latest
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
timeout-minutes: 5
- name: Login to DockerHub
uses: docker/login-action@v3
timeout-minutes: 5
with:
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v6
timeout-minutes: 5
with:
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}