Skip to content

Commit

Permalink
bugfix: #517 - Switch to semver (tags) for container versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesread committed Jan 6, 2025
1 parent 8b6f65e commit c069b5e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/build-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
- name: Get Container Version
id: getcontainerver
run: |
echo "containerver=$(date +'%s')" >> "$GITHUB_OUTPUT"
echo "containerver=${{ github.ref_name }}" >> "$GITHUB_OUTPUT"
build-containers:
needs: build-containers-common
strategy:
strategy:
matrix:
include:
- runnertags: ubuntu-latest
Expand Down Expand Up @@ -50,14 +50,14 @@ jobs:
docker images
- name: docker tag
env:
env:
CONTAINERVER: ${{ needs.build-containers-common.outputs.containerver }}
run: |
docker tag localhost/postiz ghcr.io/gitroomhq/postiz-app:${{ matrix.arch }}-${{ env.CONTAINERVER }}
docker push ghcr.io/gitroomhq/postiz-app:${{ matrix.arch }}-${{ env.CONTAINERVER }}
docker tag localhost/postiz ghcr.io/gitroomhq/postiz-app:${{ env.CONTAINERVER }}-${{ matrix.arch }}
docker push ghcr.io/gitroomhq/postiz-app:${{ env.CONTAINERVER }}-${{ matrix.arch }}
docker tag localhost/postiz-devcontainer ghcr.io/gitroomhq/postiz-devcontainer:${{ env.CONTAINERVER }}
docker push ghcr.io/gitroomhq/postiz-devcontainer:${{ env.CONTAINERVER }}
docker tag localhost/postiz-devcontainer ghcr.io/gitroomhq/postiz-devcontainer:${{ env.CONTAINERVER }}-${{ matrix.arch }}
docker push ghcr.io/gitroomhq/postiz-devcontainer:${{ env.CONTAINERVER }}-${{ matrix.arch }}
docker tag ghcr.io/gitroomhq/postiz-devcontainer:${{ env.CONTAINERVER }} ghcr.io/gitroomhq/postiz-devcontainer:latest
docker push ghcr.io/gitroomhq/postiz-devcontainer:latest
Expand All @@ -73,13 +73,13 @@ jobs:
username: ${{ github.actor }}
password: ${{ github.token }}

- name: Create Docker Manifest
env:
- name: Create Docker Manifest
env:
CONTAINERVER: ${{ needs.build-containers-common.outputs.containerver }}
run: |
docker manifest create \
ghcr.io/gitroomhq/postiz-app:latest \
ghcr.io/gitroomhq/postiz-app:amd64-${{ env.CONTAINERVER }} \
ghcr.io/gitroomhq/postiz-app:arm64-${{ env.CONTAINERVER }}
ghcr.io/gitroomhq/postiz-app:${{ env.CONTAINERVER }}-arm64 \
ghcr.io/gitroomhq/postiz-app:${{ env.CONTAINERVER }}-amd64
docker manifest push ghcr.io/gitroomhq/postiz-app:latest

0 comments on commit c069b5e

Please sign in to comment.