Skip to content

Update Docker image tag in workflow file #2

Update Docker image tag in workflow file

Update Docker image tag in workflow file #2

Workflow file for this run

name: Build Multi-Runtime Image
on:
push:
branches:
- main # Runs every time you push to the main branch
jobs:
push_to_registry:
name: Build and Push Docker Image
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to GitHub 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
with:
images: ghcr.io/${{ github.repository }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ghcr.io/${{ github.repository_owner }}/nodejs-php:latest
labels: ${{ steps.meta.outputs.labels }}