Skip to content

Commit

Permalink
fix: Update multiple workflows configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
Pradumnasaraf committed Sep 17, 2024
1 parent 15e7225 commit e8094ce
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: CI (Build, Format, Lint)

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name : Greetings
name : Greets Contributors

on:
fork:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Image to DockerHub
name: Build and Push Image to DockerHub

on:
workflow_dispatch:
Expand All @@ -12,10 +12,6 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: get-npm-version
id: package-version
uses: martinbeentjes/[email protected]

- name: DockerHub Login
uses: docker/login-action@v3
with:
Expand All @@ -38,6 +34,6 @@ jobs:
file: ./Dockerfile
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/contributor:latest
${{ secrets.DOCKERHUB_USERNAME }}/contributor:${{ steps.read_yaml.outputs['version'] }}
${{ secrets.DOCKERHUB_USERNAME }}/contributors:latest
${{ secrets.DOCKERHUB_USERNAME }}/contributors:${{ steps.read_yaml.outputs['version'] }}
platforms: linux/amd64,linux/arm64,linux/arm/v7
10 changes: 7 additions & 3 deletions .github/workflows/publish-ghcr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Image - GHCR
name: Build and Push Image to GHCR

on:
workflow_dispatch:
Expand All @@ -20,7 +20,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4


- name: Log in to the Container registry
uses: docker/login-action@v3
with:
Expand All @@ -40,12 +39,17 @@ jobs:
with:
config: ${{ github.workspace }}/version.yaml

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
push: true
tags: |
ghcr.io/pradumnasaraf/contributors:latest
ghcr.io/pradumnasaraf/contributors:${{ steps.read_yaml.outputs['version'] }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64,linux/arm/v7
labels: ${{ steps.meta.outputs.labels }}
2 changes: 1 addition & 1 deletion .github/workflows/releases.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Releases
name: Create Release
on:
push:
branches:
Expand Down

0 comments on commit e8094ce

Please sign in to comment.