Skip to content

Commit

Permalink
ci: fix version extraction regexp (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks authored Oct 30, 2023
1 parent cfc9980 commit 6c68543
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:

- name: Get image version
id: getversion
run: echo "version=$(head -n 1 alpine/Dockerfile | sed -e 's/FROM alpine:\(.*\)/\1/')" >> $GITHUB_OUTPUT
run: echo "version=$(head -n 1 alpine/Dockerfile | sed -r -e 's/^([^:]+):([^ @$-]+).*/\2/')" >> $GITHUB_OUTPUT

- name: Build container image
uses: docker/build-push-action@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:

- name: Get image version
id: getversion
run: echo "version=$(head -n 1 nginx/Dockerfile | sed -e 's/FROM nginx:\(.*\)-alpine/\1/')" >> $GITHUB_OUTPUT
run: echo "version=$(head -n 1 nginx/Dockerfile | sed -r -e 's/^([^:]+):([^ @$-]+).*/\2/')" >> $GITHUB_OUTPUT

- name: Build container image
uses: docker/build-push-action@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/traefik.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:

- name: Get image version
id: getversion
run: echo "version=$(head -n 1 traefik/Dockerfile | sed -e 's/FROM traefik:\(.*\)/\1/')" >> $GITHUB_OUTPUT
run: echo "version=$(head -n 1 traefik/Dockerfile | sed -r -e 's/^([^:]+):([^ @$-]+).*/\2/')" >> $GITHUB_OUTPUT

- name: Build container image
uses: docker/build-push-action@v5
Expand Down

0 comments on commit 6c68543

Please sign in to comment.