wip #6
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 | |
# on: | |
# workflow_run: | |
# workflows: ["PyPI"] | |
# types: | |
# - completed | |
on: | |
push: | |
branches: | |
- "gardena/eb/ci" | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set GOOSEBIT_VERSION env var | |
run: | | |
tag_=$GITHUB_REF_NAME | |
echo $tag_ | |
tag=v0.1.2 | |
echo "GOOSEBIT_VERSION=${tag#v}" >> $GITHUB_ENV | |
- name: Build and push Docker image | |
id: push | |
uses: docker/[email protected] | |
with: | |
context: . | |
build-args: GOOSEBIT_VERSION=${{ env.GOOSEBIT_VERSION }} | |
file: ./Dockerfile | |
push: false | |
# tags: ${{ steps.meta.outputs.tags }} | |
# labels: ${{ steps.meta.outputs.labels }} | |
# - name: Deploy website | |
# run: poetry run mkdocs gh-deploy |