Release 3.0.0-1 #8
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: build-release | |
on: | |
push: | |
tags: | |
- v*.*.* | |
jobs: | |
build: | |
name: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
with: | |
node-version: '14' | |
- name: Install goss and dgoss | |
run: | | |
curl -L https://github.com/aelsabbahy/goss/releases/latest/download/goss-linux-amd64 -o $HOME/goss | |
chmod +rx $HOME/goss | |
curl -L https://github.com/aelsabbahy/goss/releases/latest/download/dgoss -o $HOME/dgoss | |
chmod +rx $HOME/dgoss | |
- name: Login to Dockerhub | |
run: docker login -u ${{ secrets.DOCKER_USER }} -p "${{ secrets.DOCKER_PASSWORD }}" | |
- name: Set SAKULI_VERSION according to tag | |
run: echo "SAKULI_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV | |
- name: Add HOME directory to PATH | |
run: echo "$HOME" >> $GITHUB_PATH | |
- name: Build and test image | |
run: ./build-release.sh ${{ secrets.BASE_IMAGE }} ${SAKULI_VERSION} | |
- name: Publish image | |
run: docker push taconsol/sakuli-remote-connection:${SAKULI_VERSION} |