Skip to content

Commit

Permalink
change registry
Browse files Browse the repository at this point in the history
  • Loading branch information
Serafadam committed Dec 19, 2023
1 parent b84f4c9 commit 79681e2
Showing 1 changed file with 7 additions and 49 deletions.
56 changes: 7 additions & 49 deletions .github/workflows/main.workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,58 +27,17 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v1
if: env.PUSH == 'true'
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASS }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get Version
if: env.PUSH == 'true'
id: vars
run: echo ::set-output name=short_ref::${GITHUB_REF#refs/*/}

- name: Build Sim
uses: docker/build-push-action@v3
if: env.PUSH == 'false'
with:
build-args: |
ROS_DISTRO=${{ env.ROS_DISTRO }}
USE_RVIZ=1
SIM=1
platforms: |
amd64
no-cache: true

- name: Build and Push Sim
uses: docker/build-push-action@v3
if: env.PUSH == 'true'
with:
build-args: |
ROS_DISTRO=${{ env.ROS_DISTRO }}
USE_RVIZ=1
SIM=1
secrets: |
"SPECTACULAR_AI_TOKEN=${{ secrets.SPECTACULAR_AI_TOKEN }}"
platforms: |
amd64
push: ${{ env.PUSH }}
no-cache: true
tags: |
luxonis/rae-ros-sim:${{ steps.vars.outputs.short_ref }}
- name: Build Robot
uses: docker/build-push-action@v3
if: env.PUSH == 'false'
with:
build-args: |
ROS_DISTRO=${{ env.ROS_DISTRO }}
USE_RVIZ=0
SIM=0
platforms: |
arm64
no-cache: true

- name: Build and Push Robot
uses: docker/build-push-action@v3
if: env.PUSH == 'true'
Expand All @@ -87,11 +46,10 @@ jobs:
ROS_DISTRO=${{ env.ROS_DISTRO }}
USE_RVIZ=0
SIM=0
secrets: |
"SPECTACULAR_AI_TOKEN=${{ secrets.SPECTACULAR_AI_TOKEN }}"
platforms: |
arm64
amd64
push: ${{ env.PUSH }}
no-cache: true
tags: |
luxonis/rae-ros-robot:${{ steps.vars.outputs.short_ref }}
ghcr.io/luxonis/rae-ros:${{ steps.vars.outputs.short_ref }}

0 comments on commit 79681e2

Please sign in to comment.