Skip to content

Commit

Permalink
fixed build-&-publish-docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shahnawaz-creator authored Aug 16, 2024
1 parent 13218cf commit bb4a3ab
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/build-&-publish-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ jobs:
echo "BRANCH=$([ -z '${{ github.event.pull_request.head.sha }}' ] && echo ${GITHUB_REF#refs/*/} || echo $GITHUB_HEAD_REF)" >> $GITHUB_ENV
echo "SHA=$([ -z '${{ github.event.pull_request.head.sha }}' ] && echo $GITHUB_SHA || echo '${{ github.event.pull_request.head.sha }}')" >> $GITHUB_ENV
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: ^1.21 # The Go version to download (if necessary) and use.
# - name: Setup go
# uses: actions/setup-go@v4
# with:
# go-version: ^1.21 # The Go version to download (if necessary) and use.

- name: Clone blobber
uses: actions/checkout@v3
Expand All @@ -55,15 +55,15 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
# - name: Login to Docker Hub
# uses: docker/login-action@v1
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Get changed files using defaults
id: changed-files
uses: tj-actions/[email protected]
# - name: Get changed files using defaults
# id: changed-files
# uses: tj-actions/[email protected]

- name: Pull Build Base
run: |
Expand Down Expand Up @@ -118,10 +118,10 @@ jobs:
echo "BRANCH=$([ -z '${{ github.event.pull_request.head.sha }}' ] && echo ${GITHUB_REF#refs/*/} || echo $GITHUB_HEAD_REF)" >> $GITHUB_ENV
echo "SHA=$([ -z '${{ github.event.pull_request.head.sha }}' ] && echo $GITHUB_SHA || echo '${{ github.event.pull_request.head.sha }}')" >> $GITHUB_ENV
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: ^1.21 # The Go version to download (if necessary) and use.
# - name: Setup go
# uses: actions/setup-go@v4
# with:
# go-version: ^1.21 # The Go version to download (if necessary) and use.

- name: Clone blobber
uses: actions/checkout@v3
Expand All @@ -136,11 +136,11 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Get changed files using defaults
id: changed-files
uses: tj-actions/[email protected]
with:
fetch-depth: 0
# - name: Get changed files using defaults
# id: changed-files
# uses: tj-actions/[email protected]
# with:
# fetch-depth: 0

- name: Pull Build Base
run: |
Expand Down

0 comments on commit bb4a3ab

Please sign in to comment.