Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 5

what happenned to 'actions/docker@master' ?

it seems that the docker action is not referenced anymore under https://github.com/actions ?

 

actions/docker/cli@master && actions/docker/tag@master

 

were still very convenient, any alternatives ? 

4 Replies
Copilot Lvl 3
Message 2 of 5

Re: what happenned to 'actions/docker@master' ?

Apparently it was removed. The alternative is to just use the `run` command in the new yaml format.

 

Example: 

 

      - name: Docker Registry
        env:
          DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
          DOCKER_REGISTRY_URL: ${{ secrets.DOCKER_REGISTRY_URL }}
          DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
        run: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD $DOCKER_REGISTRY_URL
      - name: Building Docker Image
        env:
          CONTAINER_IMAGE_NAME: ${{ secrets.CONTAINER_IMAGE_NAME }}
          DOCKER_REGISTRY_URL: ${{ secrets.DOCKER_REGISTRY_URL }}
          PORT: ${{ secrets.PORT }}
          SECRET_KEY: ${{ secrets.SECRET_KEY }}
        run:
          docker build --build-arg SECRET_KEY=$SECRET_KEY
          --build-arg PORT=$PORT --no-cache -t $DOCKER_REGISTRY_URL/$CONTAINER_IMAGE_NAME:latest .
      - name: Push Docker Container to Registry
        env:
          CONTAINER_IMAGE_NAME: ${{ secrets.CONTAINER_IMAGE_NAME }}
          DOCKER_REGISTRY_URL: ${{ secrets.DOCKER_REGISTRY_URL }}
        run: docker push $DOCKER_REGISTRY_URL/$CONTAINER_IMAGE_NAME:latest
Ground Controller Lvl 1
Message 3 of 5

Re: what happenned to 'actions/docker@master' ?


@intolerance wrote:

Apparently it was removed. The alternative is to just use the `run` command in the new yaml format.


 

Was the removal announced? Looks like actions/docker wasn't the only action removed (actions/bin as well, at least)...

 

Makes me a bit nervous about the other actions hosted in https://github.com/actions!

Copilot Lvl 3
Message 4 of 5

Re: what happenned to 'actions/docker@master' ?

> Makes me a bit nervous about the other actions hosted in https://github.com/actions!

 

I had some code using this action. I am looking forward to greater stability in the officially posted actions, in the future, then this one received.

Copilot Lvl 3
Message 5 of 5

Re: what happenned to 'actions/docker@master' ?

The action was already deprecated for some time, since Docker (and docker-compose) are now part of all the virtual environments (both Linux and Windows) by default. So it doesn't really make sense to pull/build an external image for a tool that's already at your disposal. So -like intolerance said- just use the run step instead. Should save you about a minute of runtime on your workflow as well.