Skip to content

Commit

Permalink
fix: reverting push-docker-image changes
Browse files Browse the repository at this point in the history
  • Loading branch information
irtazaakram authored and feanil committed Sep 10, 2024
1 parent dcc6c9b commit 79f9fea
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/push-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v3

# Use the release name as the image tag if we're building an open release tag.
# Examples: if we're building 'open-release/olive.master', tag the image as 'olive.master'.
# Otherwise, we must be building from a push to master, so use 'latest'.
- name: Get tag name
id: get-tag-name
uses: actions/github-script@v7
uses: actions/github-script@v5
with:
script: |
const branchName = context.ref.split('/').slice(-1)[0];
Expand All @@ -29,19 +29,19 @@ jobs:
result-encoding: string

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

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
uses: docker/setup-qemu-action@v2

- name: Login to DockerHub
uses: docker/login-action@v3
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Build and push Dev Docker image
uses: docker/build-push-action@v6
uses: docker/build-push-action@v4

with:
push: true
Expand All @@ -53,7 +53,7 @@ jobs:
platforms: linux/amd64,linux/arm64

# - name: Build and push prod Docker image
# uses: docker/build-push-action@v6
# uses: docker/build-push-action@v4
# with:
# push: true
# username: ${{ secrets.DOCKERHUB_USERNAME }}
Expand Down

0 comments on commit 79f9fea

Please sign in to comment.