Skip to content

Commit

Permalink
Update dckr-img-delpoy-test.yml
Browse files Browse the repository at this point in the history
tested ci/cd
  • Loading branch information
abbos1711 authored Jan 23, 2024
1 parent 0cb668b commit c5a9ba0
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/dckr-img-delpoy-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,27 @@ jobs:
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Install Docker
- name: Update packages
run: |
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install docker.io -y
sudo apt install docker.io -y
- name: Remove conflicting packages
run: sudo apt-get remove -y containerd
run: |
sudo apt-get remove -y containerd
sudo apt-get autoremove -y
- name: Clean package cache
run: sudo apt-get clean

- name: Install containerd.io
run: sudo apt-get install -y containerd.io
run: |
sudo apt-get install -y containerd.io
- name: Install Docker
run: |
sudo apt-get install docker.io -y
- name: Build and push Docker image
run: |
docker build -t docker-test .
Expand Down

0 comments on commit c5a9ba0

Please sign in to comment.