feat: add --lang switch and update en template (#23) #8
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
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build_and_publish_docker_image: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Login to DockerHub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Get Docker image tags | |
id: image_tags | |
run: | | |
IMAGE=italia/publiccode-issueopener | |
TAGS=${IMAGE}:latest | |
TAGS="$TAGS,${IMAGE}:${GITHUB_SHA::8}" | |
echo "tags=${TAGS}" >> $GITHUB_ENV | |
- name: Build and push | |
uses: docker/build-push-action@v6 | |
with: | |
push: true | |
tags: ${{ env.tags }} |