Skip to content

Commit

Permalink
ci: Read versions from READMEs
Browse files Browse the repository at this point in the history
  • Loading branch information
lens0021 committed Sep 22, 2024
1 parent b5b216c commit 0104417
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 18 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/docker-caddy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- id: get-version
run: echo "ver=$(grep -m 1 '## v' dockers/caddy/README.md | cut -d'v' -f2)" >> $GITHUB_OUTPUT

- uses: docker/build-push-action@v6
with:
context: '{{ defaultContext }}:dockers/caddy'
Expand All @@ -40,4 +43,4 @@ jobs:
push: ${{ github.repository_owner == 'femiwiki' && github.ref == 'refs/heads/main' }}
tags: |
ghcr.io/femiwiki/caddy:latest
ghcr.io/femiwiki/caddy:${{ env.TAG }}
ghcr.io/femiwiki/caddy:${{ steps.get-version.outputs.ver }}
5 changes: 4 additions & 1 deletion .github/workflows/docker-femiwiki-extensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- id: get-version
run: echo "ver=$(grep -m 1 '## v' dockers/femiwiki-extensions/README.md | cut -d'v' -f2)" >> $GITHUB_OUTPUT

- uses: docker/build-push-action@v6
with:
context: '{{ defaultContext }}:dockers/femiwiki-extensions'
Expand All @@ -40,4 +43,4 @@ jobs:
push: ${{ github.repository_owner == 'femiwiki' && github.ref == 'refs/heads/main' }}
tags: |
ghcr.io/femiwiki/femiwiki-extensions:latest
ghcr.io/femiwiki/femiwiki-extensions:${{ env.TAG }}
ghcr.io/femiwiki/femiwiki-extensions:${{ steps.get-version.outputs.ver }}
5 changes: 4 additions & 1 deletion .github/workflows/docker-php-fpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- id: get-version
run: echo "ver=$(grep -m 1 '## v' dockers/php-fpm/README.md | cut -d'v' -f2)" >> $GITHUB_OUTPUT

- uses: docker/build-push-action@v6
with:
context: '{{ defaultContext }}:dockers/php-fpm'
Expand All @@ -40,4 +43,4 @@ jobs:
push: ${{ github.repository_owner == 'femiwiki' && github.ref == 'refs/heads/main' }}
tags: |
ghcr.io/femiwiki/php-fpm:latest
ghcr.io/femiwiki/php-fpm:${{ env.TAG }}
ghcr.io/femiwiki/php-fpm:${{ steps.get-version.outputs.ver }}
2 changes: 2 additions & 0 deletions dockers/caddy/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# caddy

Route53와 caddy-mwcache 패키지를 설치한 Caddy를 빌드한다.

## v1.0.0
30 changes: 15 additions & 15 deletions dockers/femiwiki-extensions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,64 +2,64 @@

This docker image contains MediaWiki extensions Femiwiki uses.

## 1.5.6
## v1.5.6

- Bump UnifiedExtensionForFemiwiki

## 1.5.5
## v1.5.5

- Bump UnifiedExtensionForFemiwiki

## 1.5.4
## v1.5.4

- Bump UnifiedExtensionForFemiwiki

## 1.5.3
## v1.5.3

- Bump UnifiedExtensionForFemiwiki

## 1.5.2
## v1.5.2

- Rebuild for FacetedCategory

## 1.5.1
## v1.5.1

- Bump AWS to a commit which has added 1.42 support

## 1.5.0
## v1.5.0

- Bump MediaWiki to REL1_42

## 1.4.0
## v1.4.0

- Bump UnifiedExtensionForFemiwiki

## 1.3.2
## v1.3.2

- Bump UnifiedExtensionForFemiwiki

## 1.3.1
## v1.3.1

- Bump UnifiedExtensionForFemiwiki

## 1.3.0
## v1.3.0

- Bump UnifiedExtensionForFemiwiki

## v1.2.0
## vv1.2.0

- Install RealMe
- Install GoogleNewsSitemap

## v1.1.1
## vv1.1.1

- Download FlaggedRevs from GitHub

## v1.1.0
## vv1.1.0

- Install TorBlock

## v1.0.1
## vv1.0.1

- Use tag for extension:AWS
- Bump FacetedCategory

0 comments on commit 0104417

Please sign in to comment.