Skip to content

v2.6.0

v2.6.0 #30

Workflow file for this run

name: Docker Image Builder
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
HARVESTER_FOLDER: harvester/
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
steps:
- name: Get the source
uses: actions/checkout@v3
- name: Docker login, build and push
run: |
cd $HARVESTER_FOLDER
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker build --label version=${GITHUB_REF##*/} --tag "${GITHUB_REPOSITORY}:${GITHUB_REF##*/}" .
docker push "${GITHUB_REPOSITORY}:${GITHUB_REF##*/}"