Skip to content

Commit

Permalink
Clean workflows and dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
AgarwalSaurav committed Mar 1, 2024
1 parent 414cbca commit f15f12a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 30 deletions.
28 changes: 0 additions & 28 deletions .github/docker-base-action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ runs:
echo "ACTOR=${GITHUB_ACTOR@L}" >> ${GITHUB_ENV}
echo "REPO_NAME=${GITHUB_REPOSITORY#$GITHUB_REPOSITORY_OWNER/}" >> $GITHUB_ENV
shell: bash
- name: Login to Docker Hub
if: ${{ inputs.dockerhub }} == true
uses: docker/login-action@v3
with:
username: ${{ inputs.dockerhub_username }}
password: ${{ inputs.dockerhub_token }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
Expand All @@ -40,34 +34,12 @@ runs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Docker meta
if: ${{ inputs.dockerhub }}
id: meta_with_dockerhub
uses: docker/metadata-action@v5
with:
images: |
${{ inputs.dockerhub_username }}/${{ env.REPO_NAME }}
ghcr.io/${{ github.repository }}
tags: type=semver,pattern={{version}},suffix=-${{ inputs.base_tag }}
- name: Build and push
if: ${{ inputs.dockerhub }}
uses: docker/build-push-action@v5
with:
provenance: false
platforms: linux/amd64
file: setup_utils/docker/Dockerfile
build-args: BASE_TAG=${{ inputs.base_tag }}
push: true
tags: ${{ steps.meta_with_dockerhub.outputs.tags }}
labels: ${{ steps.meta_with_dockerhub.outputs.labels }}
- name: Docker meta
if: ${{ inputs.dockerhub }} == false
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
tags: type=semver,pattern={{version}},suffix=-${{ inputs.base_tag }}
- name: Build and push
if: ${{ inputs.dockerhub }} == false
uses: docker/build-push-action@v5
with:
provenance: false
Expand Down
2 changes: 1 addition & 1 deletion setup_utils/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BASE_IMAGE=agarwalsaurav/pytorch_base
ARG BASE_IMAGE=ghcr.io/kumarrobotics/pytorch_base
ARG BASE_TAG=pytorch2.2.1
ARG SETUP_ARGS="-p"

Expand Down
2 changes: 1 addition & 1 deletion setup_utils/docker/create_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ print_usage() {
eval set -- "$params"
unset params

IMAGE_BASE_NAME=ghcr.io/agarwalsaurav/coveragecontrol
IMAGE_BASE_NAME=ghcr.io/kumarrobotics/coveragecontrol
IMAGE_TAG=latest

while true; do
Expand Down

0 comments on commit f15f12a

Please sign in to comment.