Skip to content

Commit

Permalink
debug disable build
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetkillioglu committed Jul 12, 2024
1 parent 7275caa commit 5e6b0e6
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/fognav-msgs-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,28 +55,28 @@ jobs:
type=sha
type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
- name: Build and push runtime base image
uses: docker/build-push-action@v5
with:
push: true
context: .
file: ./Dockerfile
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64,linux/arm64
build-args: |
PACKAGE_NAME=fognav-msgs
GIT_RUN_NUMBER=${{ github.run_number }}
GIT_COMMIT_HASH=${{ github.sha }}
GIT_VERSION_STRING=${{ steps.vars.outputs.SHORT_GIT_VERSION_STRING }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
# Needed because we have to create a manifest list in the next job.
provenance: mode=min
# - name: Build and push runtime base image
# uses: docker/build-push-action@v5
# with:
# push: true
# context: .
# file: ./Dockerfile
# cache-from: type=gha
# cache-to: type=gha,mode=max
# platforms: linux/amd64,linux/arm64
# build-args: |
# PACKAGE_NAME=fognav-msgs
# GIT_RUN_NUMBER=${{ github.run_number }}
# GIT_COMMIT_HASH=${{ github.sha }}
# GIT_VERSION_STRING=${{ steps.vars.outputs.SHORT_GIT_VERSION_STRING }}
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}
# # Needed because we have to create a manifest list in the next job.
# provenance: mode=min

- name: Create container and copy deb packages
run: |
platforms=("amd64" "arm64")
# platforms=("amd64" "arm64")
for platform in "${platforms[@]}"; do
docker create -ti --name "fognav-msgs-build-temp-$platform" --platform=linux/$platform $(echo "${{ steps.meta.outputs.tags }}" | head -1) bash
docker cp "fognav-msgs-build-temp-$platform:/output_dir/." ./output_dir
Expand Down

0 comments on commit 5e6b0e6

Please sign in to comment.