Skip to content

Commit

Permalink
Merge branch 'main' into release-0.7.2-rc [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHecart committed Jun 7, 2023
2 parents e579b21 + e689e14 commit 7112843
Showing 1 changed file with 44 additions and 44 deletions.
88 changes: 44 additions & 44 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -257,50 +257,50 @@ jobs:
${{ steps.package.outputs.BIN_PKG_NAME }}
${{ steps.package.outputs.DEBS_PKG_NAME }}
docker-build:
name: Docker build and push
needs: [checks, builds]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 500 # NOTE: get long history for git-version crate to correctly compute a version
- name: Fetch Git tags # NOTE: workaround for https://github.com/actions/checkout/issues/290
shell: bash
run: git fetch --tags --force
- name: Download packages from previous job
uses: actions/download-artifact@v2
with:
path: PACKAGES
- name: Unzip PACKAGES
run: |
ls PACKAGES
mkdir -p docker/linux/amd
unzip PACKAGES/x86_64-unknown-linux-musl/zenoh-bridge-ros1-${{ needs.checks.outputs.PKG_VERSION }}-x86_64-unknown-linux-musl.zip -d docker/linux/amd64/
mkdir -p docker/linux/arm64
unzip PACKAGES/aarch64-unknown-linux-musl/zenoh-bridge-ros1-${{ needs.checks.outputs.PKG_VERSION }}-aarch64-unknown-linux-musl.zip -d docker/linux/arm64/
tree docker
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Docker meta - set tags and labels
id: meta
uses: docker/metadata-action@v3
with:
images: eclipse/zenoh-bridge-ros1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_COM_USERNAME }}
password: ${{ secrets.DOCKER_COM_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm64
file: .github/workflows/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
# docker-build:
# name: Docker build and push
# needs: [checks, builds]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# with:
# fetch-depth: 500 # NOTE: get long history for git-version crate to correctly compute a version
# - name: Fetch Git tags # NOTE: workaround for https://github.com/actions/checkout/issues/290
# shell: bash
# run: git fetch --tags --force
# - name: Download packages from previous job
# uses: actions/download-artifact@v2
# with:
# path: PACKAGES
# - name: Unzip PACKAGES
# run: |
# ls PACKAGES
# mkdir -p docker/linux/amd
# unzip PACKAGES/x86_64-unknown-linux-musl/zenoh-bridge-ros1-${{ needs.checks.outputs.PKG_VERSION }}-x86_64-unknown-linux-musl.zip -d docker/linux/amd64/
# mkdir -p docker/linux/arm64
# unzip PACKAGES/aarch64-unknown-linux-musl/zenoh-bridge-ros1-${{ needs.checks.outputs.PKG_VERSION }}-aarch64-unknown-linux-musl.zip -d docker/linux/arm64/
# tree docker
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1
# - name: Docker meta - set tags and labels
# id: meta
# uses: docker/metadata-action@v3
# with:
# images: eclipse/zenoh-bridge-ros1
# - name: Login to DockerHub
# uses: docker/login-action@v1
# with:
# username: ${{ secrets.DOCKER_COM_USERNAME }}
# password: ${{ secrets.DOCKER_COM_PASSWORD }}
# - name: Build and push
# uses: docker/build-push-action@v2
# with:
# context: .
# platforms: linux/amd64,linux/arm64
# file: .github/workflows/Dockerfile
# push: true
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}

publication:
name: Release publication
Expand Down

0 comments on commit 7112843

Please sign in to comment.