File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5454 severity : CRITICAL,HIGH
5555 vuln-type : os,library
5656
57- - name : Run Docker container
58- run : |
59- # arranca en background y asigna nombre para poder pararlo después
60- docker run -d --name my-app-container -p 8080:8080 my-app-image:${{ github.sha }}
61-
62- - name : Show container logs
63- run : docker logs -f my-app-container
64-
65- - name : Remove container
66- run : docker container rm -f my-app-container
67-
6857 - name : Log in to GitHub Container Registry
6958 uses : docker/login-action@v2
7059 with :
8170 tags : |
8271 ghcr.io/${{ github.repository_owner }}/my-app-image:latest
8372 ghcr.io/${{ github.repository_owner }}/my-app-image:${{ github.sha }}
73+
74+ - name : Deploy Docker container
75+ run : |
76+ docker run -d --name my-app-container -p 8080:8080 ghcr.io/jsgiraldoh/my-app-image:${{ github.sha }}
77+
78+ - name : Show Docker container logs
79+ run : docker logs -f my-app-container
80+
81+ - name : Remove Docker container
82+ run : docker container rm -f my-app-container
You can’t perform that action at this time.
0 commit comments