Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stable date-based tags for container images #685

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

- name: Build tilemaker
run: |
mkdir ${{ github.workspace }}\build
mkdir ${{ github.workspace }}\build
cd ${{ github.workspace }}\build && cmake -DTILEMAKER_BUILD_STATIC=ON -DVCPKG_TARGET_TRIPLET="x64-windows-static-md" -DCMAKE_TOOLCHAIN_FILE="c:\vcpkg\scripts\buildsystems\vcpkg.cmake" ..
cd ${{ github.workspace }}\build && cmake --build . --config RelWithDebInfo

Expand All @@ -49,9 +49,9 @@ jobs:
${{ github.workspace }}\build\RelWithDebInfo\tilemaker.exe
${{ github.workspace }}\build\RelWithDebInfo\*.pdb

unix-build:
strategy:
matrix:
unix-build:
strategy:
matrix:
include:
- os: ubuntu-22.04
triplet: x64-linux
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
mkdir build
cd build
cmake -DTILEMAKER_BUILD_STATIC=ON -DCMAKE_BUILD_TYPE=Release -DVCPKG_TARGET_TRIPLET=${{ matrix.triplet }} -DCMAKE_TOOLCHAIN_FILE=${{ matrix.toolchain }} -DCMAKE_CXX_COMPILER=g++ ..
cmake --build .
cmake --build .
strip tilemaker

- name: Build openmaptiles-compatible mbtiles files of Liechtenstein
Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:
- name: Build openmaptiles-compatible mbtiles files of given area
uses: ./
with:
input: ${{ env.AREA }}.osm.pbf
input: ${{ env.AREA }}.osm.pbf
output: ${{ env.AREA }}.mbtiles

docker-build:
Expand All @@ -174,9 +174,12 @@ jobs:

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value={{date 'YYYY-MM-DDTHH-mm'}}
type=raw,value=latest

- name: Build Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
Expand All @@ -186,6 +189,7 @@ jobs:
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
if: ${{ github.ref == 'refs/heads/master'}}
Expand Down
Loading