Skip to content

Commit

Permalink
add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
AbcSxyZ committed Nov 20, 2021
1 parent f7e0e67 commit 4d814e9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/github-actions-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,10 @@ jobs:
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
- name: Deploy image
run: |
echo docker login -u ${{secrets.DOCKERHUB_PASSWORD}} -p ${{secrets.DOCKERHUB_USER}}
sudo docker login -u=${{secrets.DOCKERHUB_PASSWORD}} -p=${{secrets.DOCKERHUB_USER}}
echo $(pwd)
docker build -t abcsxyz/test:0.0.git docker_image
docker push abcsxyz/test:0.0.git
5 changes: 5 additions & 0 deletions docker_image/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM ubuntu:latest

RUN echo TEST > /test_file

ENTRYPOINT ["bash"]

0 comments on commit 4d814e9

Please sign in to comment.