Skip to content

fix(ci): use the metadata-action to set the tags (#69) #46

fix(ci): use the metadata-action to set the tags (#69)

fix(ci): use the metadata-action to set the tags (#69) #46

Workflow file for this run

name: Publish Docker image
on:
push:
branches:
- main
release:
types: [published]
jobs:
push_to_registry:
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
name: Docker meta

Check failure on line 16 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / Publish Docker image

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yml (Line: 16, Col: 9): 'name' is already defined .github/workflows/publish.yml (Line: 18, Col: 9): 'uses' is already defined
id: meta
uses: docker/metadata-action@v3
with:
images: |
ghcr.io/nextdoor/gogo
tags: |
type=ref,event=tag
- name: Push to GitHub Packages
uses: docker/build-push-action@v6
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
repository: nextdoor/gogo
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}