diff --git a/.github/workflows/docker_image.yml b/.github/workflows/docker_image.yml index e7953ccb..38feeb88 100644 --- a/.github/workflows/docker_image.yml +++ b/.github/workflows/docker_image.yml @@ -9,10 +9,13 @@ env: jobs: build: runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 + - name: Setup environment + uses: ./.github/workflows/setup_environment.yml + - name: bump version and update template_input.yaml + run: | + PROJECT_VERSION=$(poetry version --short) + echo "PROJECT_VERSION=$PROJECT_VERSION" >> $GITHUB_ENV - name: Login to GitHub Container Registry uses: docker/login-action@v3 @@ -32,5 +35,5 @@ jobs: with: context: . push: true - tags: ${{ steps.meta.outputs.tags }} + tags: [${{ env.PROJECT_VERSION }}, latest] labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file diff --git a/.github/workflows/setup_environment.yml b/.github/workflows/setup_environment.yml new file mode 100644 index 00000000..e69de29b