Skip to content

Commit

Permalink
chore: docker hub (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeriolino authored Aug 12, 2024
1 parent b68f9ec commit ed91649
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: CI

on: [push]

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
on:
push:
tags:
- '*'

jobs:
build:
Expand All @@ -15,15 +14,14 @@ jobs:
- name: Log in to the Container registry
uses: docker/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/[email protected]
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
images: ${{ github.repository }}

- name: Build and push Docker image
uses: docker/[email protected]
Expand All @@ -32,4 +30,3 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit ed91649

Please sign in to comment.