Add es locale #62
Workflow file for this run
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
name: Pull Request Validation | |
on: | |
pull_request: | |
env: | |
DOCKERHUB_USERNAME: ${{ vars.DOCKERHUB_USERNAME }} | |
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} | |
GITHUB_REPO: cyxou/firefly-iii-telegram-bot | |
PR_NUMBER: pr-${{ github.event.number }} | |
FORCE_COLOR: 1 | |
jobs: | |
validate_pr: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up QEMU for multiplatform builds | |
id: qemu | |
uses: docker/setup-qemu-action@v2 | |
with: | |
image: tonistiigi/binfmt:latest | |
platforms: all | |
- uses: actions/checkout@v3 | |
- name: Put back the git branch into git (Earthly uses it for tagging) | |
run: | | |
branch="" | |
if [ -n "$GITHUB_HEAD_REF" ]; then | |
branch="$GITHUB_HEAD_REF" | |
else | |
branch="${GITHUB_REF##*/}" | |
fi | |
git checkout -b "$branch" || true | |
- name: Download Earthly | |
run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.7.8/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'" | |
- name: Earthly version | |
run: earthly --version | |
- name: Validate PR | |
run: | | |
earthly --ci --allow-privileged +validatePR \ | |
--DOCKERHUB_REPO=$GITHUB_REPO \ | |
--DOCKERHUB_USERNAME=$DOCKERHUB_USERNAME \ | |
--DOCKERHUB_ACCESS_TOKEN=$DOCKERHUB_TOKEN | |
- name: Docker Login | |
run: docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_TOKEN | |
- name: Build PR Image | |
run: | | |
earthly --ci --push +build-and-push \ | |
--DOCKERHUB_REPO=$GITHUB_REPO \ | |
--DOCKERHUB_USERNAME=$DOCKERHUB_USERNAME \ | |
--DOCKERHUB_ACCESS_TOKEN=$DOCKERHUB_TOKEN \ | |
--RELEASE_VERSION=$PR_NUMBER |