release ws-loterre-resolvers@7.0.5 #87
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
# .github/workflows/docker-build-on-tag.yml | |
name: Build, Test & Push | |
on: | |
push: | |
tags: | |
- "ws-*@*" | |
jobs: | |
test-on-tag: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout from Git | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install Hurl | |
run: | | |
curl --location --remote-name https://github.com/Orange-OpenSource/hurl/releases/download/5.0.1/hurl_5.0.1_amd64.deb | |
sudo dpkg -i hurl_5.0.1_amd64.deb | |
hurl --version | |
- name: Build .env from Github Actions secrets | |
shell: bash | |
run: | | |
bin/create-env.sh ${{ github.ref_name }} ${{ secrets.WEBDAV_LOGIN }} ${{ secrets.WEBDAV_PASSWORD }} ${{ secrets.WEBDAV_URL }} ${{secrets.OPENALEX_API_KEY}} ${{secrets.UNPAYWALL_API_KEY}} ${{secrets.CROSSREF_API_KEY}} | |
ls -l services/*/.env | |
- name: Build Docker Image & Test | |
shell: bash | |
run: | | |
bin/test-on-tag.sh ${{ github.ref_name }} | |
build-on-tag: | |
needs: | |
- test-on-tag | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout from Git | |
uses: actions/checkout@v4 | |
- name: Docker Login | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Build .env from Github Actions secrets | |
shell: bash | |
run: | | |
bin/create-env.sh ${{ github.ref_name }} ${{ secrets.WEBDAV_LOGIN }} ${{ secrets.WEBDAV_PASSWORD }} ${{ secrets.WEBDAV_URL }} ${{secrets.OPENALEX_API_KEY}} ${{secrets.UNPAYWALL_API_KEY}} ${{secrets.CROSSREF_API_KEY}} | |
ls -l services/*/.env | |
- name: Build & Push Docker Image | |
shell: bash | |
run: | | |
echo "Building and pushing image for ${{ github.ref_name }}" | |
bin/build-and-push.sh ${{ github.ref_name }} |