File tree Expand file tree Collapse file tree 5 files changed +13
-13
lines changed
Expand file tree Collapse file tree 5 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 1- name : CI
1+ name : CI (Build, Format, Lint)
22
33on :
44 push :
Original file line number Diff line number Diff line change 1- name : Greetings
1+ name : Greets Contributors
22
33on :
44 fork :
Original file line number Diff line number Diff line change 1- name : Publish Image to DockerHub
1+ name : Build and Push Image to DockerHub
22
33on :
44 workflow_dispatch :
1212 steps :
1313 - uses : actions/checkout@v4
1414
15- - name : get-npm-version
16- id : package-version
17- uses : martinbeentjes/npm-get-version-action@v1.3.1
18-
1915 - name : DockerHub Login
2016 uses : docker/login-action@v3
2117 with :
3834 file : ./Dockerfile
3935 push : true
4036 tags : |
41- ${{ secrets.DOCKERHUB_USERNAME }}/contributor :latest
42- ${{ secrets.DOCKERHUB_USERNAME }}/contributor :${{ steps.read_yaml.outputs['version'] }}
37+ ${{ secrets.DOCKERHUB_USERNAME }}/contributors :latest
38+ ${{ secrets.DOCKERHUB_USERNAME }}/contributors :${{ steps.read_yaml.outputs['version'] }}
4339 platforms : linux/amd64,linux/arm64,linux/arm/v7
Original file line number Diff line number Diff line change 1- name : Publish Image - GHCR
1+ name : Build and Push Image to GHCR
22
33on :
44 workflow_dispatch :
2020 - name : Checkout repository
2121 uses : actions/checkout@v4
2222
23-
2423 - name : Log in to the Container registry
2524 uses : docker/login-action@v3
2625 with :
@@ -40,12 +39,17 @@ jobs:
4039 with :
4140 config : ${{ github.workspace }}/version.yaml
4241
42+ - name : Set up Docker Buildx
43+ uses : docker/setup-buildx-action@v3
44+
4345 - name : Build and push Docker image
4446 uses : docker/build-push-action@v6
4547 with :
4648 context : .
49+ file : ./Dockerfile
4750 push : true
4851 tags : |
4952 ghcr.io/pradumnasaraf/contributors:latest
5053 ghcr.io/pradumnasaraf/contributors:${{ steps.read_yaml.outputs['version'] }}
51- labels : ${{ steps.meta.outputs.labels }}
54+ platforms : linux/amd64,linux/arm64,linux/arm/v7
55+ labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change 1- name : Releases
1+ name : Create Release
22on :
33 push :
44 branches :
You can’t perform that action at this time.
0 commit comments