Skip to content

Commit

Permalink
ci(docker): use docker subcommands for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
hoang-himself committed Aug 26, 2023
1 parent 049caae commit f52ea59
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,11 @@ on:
branches: [ "master" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
Expand All @@ -31,6 +28,6 @@ jobs:
[ "$VERSION" == "master" ] && VERSION=latest
echo IMAGE_ID=$IMAGE_ID
echo VERSION=$VERSION
docker build . --tag dvwa
docker tag dvwa $IMAGE_ID:$VERSION
docker push $IMAGE_ID:$VERSION
docker image build . --tag dvwa
docker image tag dvwa $IMAGE_ID:$VERSION
docker image push $IMAGE_ID:$VERSION

0 comments on commit f52ea59

Please sign in to comment.