Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Gökay Gürcan <gokay.gurcan@bestseller.com>
  • Loading branch information
gokaygurcan committed Jan 7, 2024
1 parent b5f9fb7 commit c7fd137
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,9 @@ env:
GITHUB: ${{ toJson(github) }}

jobs:
version:
name: version
runs-on: ubuntu-latest
outputs:
version: ${{ steps.version.outputs.version }}
steps:
- id: version
name: Version
run: |
grep -r "NGINX_VERSION=" Dockerfile | cut -d "=" -f 2 | cut -d " " -f 1
# echo "::set-output name=version::$(grep -r "NGINX_VERSION=" Dockerfile | cut -d "=" -f 2 | cut -d " " -f 1)"
echo "version=main" >> $GITHUB_OUTPUT
echo "version=$(grep -r "NGINX_VERSION=" Dockerfile | cut -d "=" -f 2 | cut -d " " -f 1)" >> $GITHUB_OUTPUT
nginx:
name: nginx
runs-on: ubuntu-latest
needs: [ version ]
env:
CI: true
steps:
Expand All @@ -55,7 +40,6 @@ jobs:
name: Build image
run: |
docker build --file Dockerfile --tag gokaygurcan/nginx:latest .
# docker build --file Dockerfile --tag gokaygurcan/nginx:latest --tag gokaygurcan/nginx:${{ needs.version.outputs.version }} .
docker ps -a
- id: test
Expand All @@ -73,6 +57,4 @@ jobs:
with:
context: .
push: true
tags: |
gokaygurcan/nginx:latest
# gokaygurcan/nginx:${{ needs.version.outputs.version }}
tags: gokaygurcan/nginx:latest

0 comments on commit c7fd137

Please sign in to comment.