Skip to content

Commit

Permalink
Merge pull request #6 from d33bs/development
Browse files Browse the repository at this point in the history
update to checkout code first
  • Loading branch information
d33bs authored Dec 22, 2023
2 parents 54c1da2 + 7a7726e commit 63fde29
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/docker-push.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
name: docker-push

on:
push:
pull_request:
branches: ['main']

jobs:
docker-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
Expand All @@ -17,9 +20,24 @@ jobs:
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_TOKEN }}
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Gather poetry dynamic version
id: poetry-version
run: >-
pip install poetry poetry-dynamic-versioning &&
poetry install &&
VERSION=$(
poetry version |
awk '{print $2}' |
awk -F'.' '{print $1"."$2"."$3}'
) &&
echo "VERSION=$VERSION" >> "$GITHUB_OUTPUT"
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
file: build/docker/Dockerfile
tags: d33bs/wintry:latest
tags: d33bs/wintry:latest,d33bs/wintry:${{ steps.poetry-version.outputs.VERSION }}

0 comments on commit 63fde29

Please sign in to comment.