Skip to content

Commit

Permalink
fix: Docker name in github actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lens0021 committed May 21, 2024
1 parent a5557ee commit 41aebcc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docker-femiwiki.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
mv development/secret.php.example development/secret.php
mv dockers/femiwiki/LocalSettings.php development
mv dockers/femiwiki/Hotfix.php development
sed -i -r 's~ghcr\.io\/femiwiki\/mediawiki:.+~ghcr\.io\/femiwiki\/mediawiki:docker-test~' docker-compose.yml
sed -i -r 's~ghcr\.io\/femiwiki\/femiwiki:.+~ghcr\.io\/femiwiki\/femiwiki:docker-test~' docker-compose.yml
- run: |
echo "version=$(date +%Y-%m-%dT%H-%M)-$(echo ${{ github.sha }} | cut -c1-8)" >> $GITHUB_OUTPUT
Expand All @@ -36,11 +36,11 @@ jobs:
with:
context: '{{ defaultContext }}:dockers/femiwiki'
platforms: linux/amd64
cache-from: ghcr.io/femiwiki/mediawiki:latest
cache-from: ghcr.io/femiwiki/femiwiki:latest
cache-to: mode=max,type=local,dest=/tmp/.buildx-cache
load: true
push: false
tags: ghcr.io/femiwiki/mediawiki:docker-test
tags: ghcr.io/femiwiki/femiwiki:docker-test

- name: Initialize docker swarm and start services
run: |
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
context: '{{defaultContext}}:dockers/femiwiki'
platforms: linux/amd64,linux/arm64
cache-from: |
ghcr.io/femiwiki/mediawiki:latest
ghcr.io/femiwiki/femiwiki:latest
type=local,src=/tmp/.buildx-cache
cache-to: mode=max,type=inline
load: false
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version: '3'
services:
http:
image: ghcr.io/femiwiki/femiwiki:latest
image: ghcr.io/femiwiki/femiwiki:dev
command: caddy run
ports:
- 8080:8080
Expand All @@ -21,7 +21,7 @@ services:
options:
max-size: '100m'
fastcgi:
image: ghcr.io/femiwiki/femiwiki:latest
image: ghcr.io/femiwiki/femiwiki:dev
volumes:
# Mount secret.php, LocalSettings.php and site-list.xml
- ./development:/a:ro
Expand Down

0 comments on commit 41aebcc

Please sign in to comment.