Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
scirner22 committed May 17, 2024
1 parent 0075716 commit c9b124a
Showing 1 changed file with 35 additions and 36 deletions.
71 changes: 35 additions & 36 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Docker Build and Push
# Build & Push builds the simapp docker image on every push to master
# and pushes the image to https://hub.docker.com/u/provenanceio
on:
# Uncomment this trigger if you'd like to test this workflow during active development.
# This trigger is configured to not push any images to Docker Hub.
pull_request:
paths:
- .github/workflow/docker.yml
push:
branches:
- main
Expand Down Expand Up @@ -39,15 +39,14 @@ jobs:
prefix=heighliner-,onlatest=true
tags: |
type=edge
type=ref,enable=${{ github.event_name == 'pull_request' }},event=pr
type=ref,event=pr
type=ref,event=tag
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

# - uses: strangelove-ventures/[email protected]
- uses: strangelove-ventures/heighliner-build-action@main
with:
heighliner-tag: v1.5.5
Expand All @@ -61,42 +60,42 @@ jobs:
additional-args: "--alpine-version 3.18"
skip: ${{ github.event_name == 'pull_request' }}

# docker:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

# - uses: actions/setup-go@v5
# with:
# go-version: '1.21'
- uses: actions/setup-go@v5
with:
go-version: '1.21'

# - run: go mod vendor
- run: go mod vendor

# - uses: docker/setup-buildx-action@v3
- uses: docker/setup-buildx-action@v3

# - uses: docker/setup-qemu-action@v2
- uses: docker/setup-qemu-action@v2

# - uses: docker/metadata-action@v5
# id: meta
# with:
# images: ${{ env.DOCKER_IMAGE }}
# tags: |
# type=edge
# type=ref,enable=${{ github.event_name == 'pull_request' }},event=branch
# type=ref,event=tag
- uses: docker/metadata-action@v5
id: meta
with:
images: ${{ env.DOCKER_IMAGE }}
tags: |
type=edge
type=ref,event=pr
type=ref,event=tag
# - uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

# - uses: docker/build-push-action@v5
# with:
# context: .
# target: run
# build-args: |
# VERSION=${{ steps.meta.outputs.version }}
# platforms: linux/amd64,linux/arm64
# file: docker/blockchain/Dockerfile
# push: ${{ github.event_name != 'pull_request' }}
# tags: ${{ steps.meta.outputs.tags }}
- uses: docker/build-push-action@v5
with:
context: .
target: run
build-args: |
VERSION=${{ steps.meta.outputs.version }}
platforms: linux/amd64,linux/arm64
file: docker/blockchain/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}

0 comments on commit c9b124a

Please sign in to comment.