Skip to content

Commit

Permalink
Make it easier to read by avoiding having to create and copy from a c…
Browse files Browse the repository at this point in the history
…ontainer

Refs #1817, unsplash/intlc#208
  • Loading branch information
thewilkybarkid committed Jul 30, 2024
1 parent e9949ab commit dc18271
Showing 1 changed file with 11 additions and 22 deletions.
33 changes: 11 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit dc18271

Please sign in to comment.