Skip to content

Bump the actions group with 1 update (#22) #18

Bump the actions group with 1 update (#22)

Bump the actions group with 1 update (#22) #18

Workflow file for this run

name: Docker image
on:
push:
branches: ['main']
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels)
id: meta
uses: docker/metadata-action@v5.5.1
with:
images: ghcr.io/t-richards/password-generator
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
push: true
tags: ghcr.io/t-richards/password-generator:latest, ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}