-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make it easier to read by avoiding having to create and copy from a c…
…ontainer Refs #1817, unsplash/intlc#208
- Loading branch information
1 parent
e9949ab
commit dc18271
Showing
1 changed file
with
11 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,31 +75,20 @@ jobs: | |
- name: 'Checkout code' | ||
uses: actions/[email protected] | ||
|
||
- name: 'Set up Docker Build' | ||
uses: docker/[email protected] | ||
|
||
- name: 'Build intlc image' | ||
id: build | ||
uses: docker/[email protected] | ||
env: | ||
DOCKER_BUILD_SUMMARY: false | ||
- name: 'Set up intlc' | ||
uses: unsplash/[email protected] | ||
with: | ||
context: . | ||
target: build-intlc | ||
outputs: type=docker | ||
cache-from: type=gha,ignore-error=true | ||
cache-to: type=gha,mode=max,ignore-error=true | ||
version: 0.8.3 | ||
|
||
- name: 'Create container' | ||
id: container | ||
run: | | ||
container=$(docker container create "${{ steps.build.outputs.imageid }}") | ||
echo "container=$container" >> $GITHUB_OUTPUT | ||
- name: 'Set up mo' | ||
uses: shrink/[email protected] | ||
with: | ||
image: ghcr.io/tests-always-included/mo:3.0.5 | ||
path: /usr/local/bin/mo | ||
destination: /usr/local/bin | ||
|
||
- name: 'Copy files' | ||
run: | | ||
docker container cp ${{ steps.container.outputs.container }}:/app/assets/ . | ||
docker container cp ${{ steps.container.outputs.container }}:/app/src/ . | ||
- name: 'Build locales' | ||
run: scripts/intlc.sh | ||
|
||
- name: 'Upload locales' | ||
uses: actions/[email protected] | ||
|