Skip to content

Commit

Permalink
Enable push and remove commented definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
penumbra23 committed Jul 3, 2024
1 parent 568fa24 commit 351d766
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .github/actions/buildah-action/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,5 @@ runs:
shell: bash
if: ${{ inputs.push == 'true' }}
run: |
buildah push ${{ inputs.image_name }}:${{ github.sha }} ${{ inputs.registry }}/${{ inputs.image_name }}:${{ github.sha }}
buildah push ${{ inputs.image_name }} ${{ inputs.registry }}/${{ inputs.image_name }}
38 changes: 5 additions & 33 deletions .github/workflows/merge-docker-timenode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,6 @@ jobs:
steps:
- name: Fetch latest code
uses: actions/checkout@v3
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v2
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v2
# - name: Login to Docker Hub
# uses: docker/login-action@v2
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Create target dir
run: mkdir ${{ github.workspace }}/target
- name: Cache Rust deps
Expand All @@ -68,32 +59,13 @@ jobs:
image_name: ${{ env.DOCKER_REPO }}-${{ matrix.image }}:${{ needs.set-tags.outputs.commit_hash8 }}
containerfile: ./config/docker/Dockerfile.release
context: .
volume: ${{ github.workspace }}/target:/build/target # Optional volume bind mount
username: ${{ secrets.DOCKERHUB_USERNAME }} # Optional registry username
password: ${{ secrets.DOCKERHUB_TOKEN }} # Optional registry password
registry: docker.io # Optional registry URL
push: 'false' # Optional push flag
volume: ${{ github.workspace }}/target:/build/target
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
registry: docker.io
push: 'true'
build_args: |
PROFILE=${{ matrix.profile }}
VCS_REF=${{ needs.set-tags.outputs.commit_hash8 }}
BUILD_VARIANT=${{ matrix.image }}
FEATURES=${{ matrix.features }}
# - name: Build
# run: |
# buildah bud -v $PWD/target:/build/target \
# -t timechain-node:${{ needs.set-tags.outputs.commit_hash8 }} \
# -f config/docker/Dockerfile.release \
# --build-arg PROFILE=production --build-arg VCS_REF=commit --build-arg BUILD_VARIANT=prod \
# --dns '8.8.8.8' .
# - name: Build and push
# uses: docker/build-push-action@v4
# with:
# context: .
# push: true
# tags: ${{ env.DOCKER_REPO }}-${{ matrix.image }}:${{ needs.set-tags.outputs.commit_hash8 }}
# file: config/docker/Dockerfile.release
# build-args: |
# VCS_REF=${{ needs.set-tags.outputs.commit_hash8 }}
# PROFILE=${{ matrix.profile }}
# FEATURES=${{ matrix.features }}
# BUILD_VARIANT=${{ matrix.image }}

0 comments on commit 351d766

Please sign in to comment.