Skip to content

Open Infrastructure Map, a view of infrastructure data in OpenStreetMap

Tag image with SHA as well as latest tag

Russ Garrett0bdc68c50812
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index df2c27a..261008b 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -8,6 +8,18 @@ jobs:
login:
runs-on: ubuntu-latest
steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Docker meta
+ id: meta
+ uses: docker/metadata-action@v3
+ with:
+ images: |
+ ghcr.io/openinframap/web
+ flavor: |
+ latest=true
+ tags: |
+ type=sha
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
@@ -20,4 +32,5 @@ jobs:
with:
file: Dockerfile.prod
push: true
- tags: ghcr.io/openinframap/web:latest
+ tags: ${{ steps.meta.outputs.tags }}
+ labels: ${{ steps.meta.outputs.labels }}