Skip to content

Commit

Permalink
second try for publishing to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
juandjara committed Nov 19, 2023
1 parent b0751dc commit fc980c3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ghcr.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Build and publish Docker image to GitHub Container Registry
name: Build and Publish Docker Image to ghcr.io

on:
push:
branches: ['main']

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}:latest
IMAGE_NAME: ${{ github.repository }}

jobs:
build-and-publish:
Expand All @@ -29,14 +29,14 @@ jobs:

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
tags: ${{ steps.meta.outputs.tags }}, latest
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit fc980c3

Please sign in to comment.