Skip to content

Commit

Permalink
Extract nginx version from Dockerfile argument (#608)
Browse files Browse the repository at this point in the history
  • Loading branch information
miry authored Apr 25, 2024
1 parent 11b7616 commit e6d88a3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ jobs:
- name: Output Variables
id: var
run: |
echo "nginx_version=$(grep -m1 'FROM nginx:' <Dockerfile | awk -F'[: ]' '{print $3}')" >> $GITHUB_OUTPUT
echo "nginx_version=$(grep -m1 'ARG BUILD_NGINX_VERSION=' <Dockerfile | awk -F'[= ]' '{print $3}')" >> $GITHUB_OUTPUT
- name: Nginx version
run: echo "${{ steps.var.outputs.nginx_version }}"

- name: Setup QEMU
uses: docker/setup-qemu-action@v3
Expand Down

0 comments on commit e6d88a3

Please sign in to comment.