v2.6.0 #30
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: 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##*/}" |