diff --git a/.github/actions/create-main-distro-alias/action.yaml b/.github/actions/create-main-distro-alias/action.yaml deleted file mode 100644 index 40e9d53ee21..00000000000 --- a/.github/actions/create-main-distro-alias/action.yaml +++ /dev/null @@ -1,49 +0,0 @@ -name: create-main-distro-alias -description: "" - -inputs: - package-name: - description: "" - required: true - rosdistro: - description: "" - required: true - tag-name: - description: "" - required: true - -runs: - using: composite - steps: - - name: Login to GitHub Container Registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ github.token }} - - - name: Set image name - id: set-image-name - run: echo "image-name=ghcr.io/${{ github.repository_owner }}/${{ inputs.package-name }}" >> $GITHUB_OUTPUT - shell: bash - - - name: Create Docker manifest for latest - run: | - # Check image existence - distro_image="${{ steps.set-image-name.outputs.image-name }}:${{ inputs.rosdistro }}-${{ inputs.tag-name }}" - if docker manifest inspect "$distro_image-amd64" >/dev/null 2>&1; then - amd64_image="$distro_image-amd64" - fi - if docker manifest inspect "$distro_image-arm64" >/dev/null 2>&1; then - arm64_image="$distro_image-arm64" - fi - - echo "amd64_image: $amd64_image" - echo "arm64_image: $arm64_image" - - docker manifest create --amend ${{ steps.set-image-name.outputs.image-name }}:${{ inputs.tag-name }} \ - $amd64_image \ - $arm64_image - - docker manifest push ${{ steps.set-image-name.outputs.image-name }}:${{ inputs.tag-name }} - shell: bash diff --git a/.github/workflows/update-docker-manifest.yaml b/.github/workflows/update-docker-manifest.yaml index 0e2ac4a8ab0..7c63a54dcb5 100644 --- a/.github/workflows/update-docker-manifest.yaml +++ b/.github/workflows/update-docker-manifest.yaml @@ -6,11 +6,7 @@ on: workflow_dispatch: jobs: - load-env: - uses: ./.github/workflows/load-env.yaml - update-docker-manifest: - needs: load-env runs-on: ubuntu-latest steps: - name: Check out repository @@ -20,31 +16,3 @@ jobs: uses: ./.github/actions/combine-multi-arch-images with: package-name: autoware-openadk - - - name: Create alias from 'autoware-openadk:{rosdistro}-latest-devel' to 'autoware-openadk:latest-devel' - uses: ./.github/actions/create-main-distro-alias - with: - package-name: autoware-openadk - rosdistro: ${{ needs.load-env.outputs.rosdistro }} - tag-name: latest-devel - - - name: Create alias from 'autoware-openadk:{rosdistro}-latest-runtime' to 'autoware-openadk:latest-runtime' - uses: ./.github/actions/create-main-distro-alias - with: - package-name: autoware-openadk - rosdistro: ${{ needs.load-env.outputs.rosdistro }} - tag-name: latest-runtime - - - name: Create alias from 'autoware-openadk:{rosdistro}-latest-devel-cuda' to 'autoware-openadk:latest-devel-cuda' - uses: ./.github/actions/create-main-distro-alias - with: - package-name: autoware-openadk - rosdistro: ${{ needs.load-env.outputs.rosdistro }} - tag-name: latest-devel-cuda - - - name: Create alias from 'autoware-openadk:{rosdistro}-latest-runtime-cuda' to 'autoware-openadk:latest-runtime-cuda' - uses: ./.github/actions/create-main-distro-alias - with: - package-name: autoware-openadk - rosdistro: ${{ needs.load-env.outputs.rosdistro }} - tag-name: latest-runtime-cuda