From 14169c2690951fbec0de4e370d6ab28266c1702b Mon Sep 17 00:00:00 2001 From: Yves Date: Wed, 20 Dec 2023 17:39:19 +0100 Subject: [PATCH] Remove deprecated GitHub Actions workflows --- .github/workflows/docker-hub.yml | 54 --------------------------- .github/workflows/docker-hub_ros2.yml | 54 --------------------------- 2 files changed, 108 deletions(-) delete mode 100644 .github/workflows/docker-hub.yml delete mode 100644 .github/workflows/docker-hub_ros2.yml diff --git a/.github/workflows/docker-hub.yml b/.github/workflows/docker-hub.yml deleted file mode 100644 index 0f33bad..0000000 --- a/.github/workflows/docker-hub.yml +++ /dev/null @@ -1,54 +0,0 @@ -name: Build and Push Docker Image to Docker Hub - -on: - push: - branches: [ "dev", "main" ] - pull_request: - branches: [ "dev", "main" ] - -env: - REGISTRY: docker.io - IMAGE_NAME: "robologs/robologs-ros-actions" - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - name: Build the Docker image - run: docker build -t ${{ env.IMAGE_NAME }} --file docker/Dockerfile_ros . - - push_to_registry: - name: Push Docker image to Docker Hub - runs-on: ubuntu-latest - steps: - - name: Check out the repo - uses: actions/checkout@v3 - - - name: Log in to Docker Hub - uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Extract metadata (tags, labels) for Docker - id: meta - uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 - with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - # Add this line to create a 'latest' tag for main branch - flavor: | - latest=${{ github.ref == 'refs/heads/main' }} - - - name: Build and push Docker image - uses: docker/build-push-action@v2 - with: - context: . - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - file: docker/Dockerfile_ros - network: host - diff --git a/.github/workflows/docker-hub_ros2.yml b/.github/workflows/docker-hub_ros2.yml deleted file mode 100644 index bb084f6..0000000 --- a/.github/workflows/docker-hub_ros2.yml +++ /dev/null @@ -1,54 +0,0 @@ -name: Build and Push Docker Image to Docker Hub - -on: - push: - branches: [ "dev", "main" ] - pull_request: - branches: [ "dev", "main" ] - -env: - REGISTRY: docker.io - IMAGE_NAME: "robologs/robologs-ros2-actions" - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - name: Build the Docker image - run: docker build -t ${{ env.IMAGE_NAME }} --file docker/Dockerfile_ros2 . - - push_to_registry: - name: Push Docker image to Docker Hub - runs-on: ubuntu-latest - steps: - - name: Check out the repo - uses: actions/checkout@v3 - - - name: Log in to Docker Hub - uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Extract metadata (tags, labels) for Docker - id: meta - uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 - with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - # Add this line to create a 'latest' tag for main branch - flavor: | - latest=${{ github.ref == 'refs/heads/main' }} - - - name: Build and push Docker image - uses: docker/build-push-action@v2 - with: - context: . - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - file: docker/Dockerfile_ros2 - network: host -