Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
alekseyezhov committed Jul 22, 2024
1 parent 58a7c15 commit d08ea63
Showing 1 changed file with 24 additions and 23 deletions.
47 changes: 24 additions & 23 deletions .github/workflows/manual_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,28 +84,6 @@ jobs:
tags: |
type=match,pattern=v(.*),prefix=,suffix=
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: ${{ inputs.docker_context }}
platforms: "linux/x86_64"
file: ${{ inputs.docker_file }}
push: false
labels: ${{ steps.meta-versioned.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
tags: "debridgefinance/${{ env.IMAGE_NAME }}:sol-${{ github.event.inputs.solana_cli_version }}-${{ github.event.inputs.anchor_rev }}"
build-args: |
SOLANA_CLI=${{ github.event.inputs.solana_cli_version }}
ANCHOR_REV=${{ github.event.inputs.anchor_rev }}
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
#registry: ${{ env.REGISTRY }}

- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
Expand All @@ -116,11 +94,34 @@ jobs:
labels: ${{ steps.meta-versioned.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
tags: "debridgefinance/${{ env.IMAGE_NAME }}:sol-${{ github.event.inputs.solana_cli_version }}-${{ github.event.inputs.anchor_rev }}"
tags: "debridgefinance/${{ env.IMAGE_NAME }}:sol-${{ github.event.inputs.solana_cli_version }}"
build-args: |
SOLANA_CLI=${{ github.event.inputs.solana_cli_version }}
ANCHOR_REV=${{ github.event.inputs.anchor_rev }}
# - name: Login to Docker Hub
# uses: docker/login-action@v2
# with:
# username: ${{ secrets.DOCKER_HUB_USERNAME }}
# password: ${{ secrets.DOCKER_HUB_PASSWORD }}
# #registry: ${{ env.REGISTRY }}
#
# - name: Build and push Docker image
# uses: docker/build-push-action@v4
# with:
# context: ${{ inputs.docker_context }}
# platforms: "linux/x86_64"
# file: ${{ inputs.docker_file }}
# push: true
# labels: ${{ steps.meta-versioned.outputs.labels }}
# cache-from: type=gha
# cache-to: type=gha,mode=max
# tags: "debridgefinance/${{ env.IMAGE_NAME }}:sol-${{ github.event.inputs.solana_cli_version }}
# #-${{ github.event.inputs.anchor_rev }}"
# build-args: |
# SOLANA_CLI=${{ github.event.inputs.solana_cli_version }}
# ANCHOR_REV=${{ github.event.inputs.anchor_rev }}

# Login against a Docker registry except on PR
# https://github.com/docker/login-action
# - name: Log into registry ${{ env.REGISTRY }}
Expand Down

0 comments on commit d08ea63

Please sign in to comment.