Skip to content

Open Infrastructure Map, a view of infrastructure data in OpenStreetMap

Change image tag format for new deployment process

Russ Garrett9bde1cc02c72
diff --git a/.github/workflows/web-backend.yml b/.github/workflows/web-backend.yml
index b39cdc9..b960e97 100644
--- a/.github/workflows/web-backend.yml
+++ b/.github/workflows/web-backend.yml
@@ -9,20 +9,12 @@ on:
jobs:
build:
+ env:
+ IMAGE: ghcr.io/openinframap/web-backend
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-backend
- flavor: |
- latest=true
- tags: |
- type=sha
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
@@ -36,5 +28,5 @@ jobs:
context: ./web-backend
file: ./web-backend/Dockerfile
push: true
- tags: ${{ steps.meta.outputs.tags }}
- labels: ${{ steps.meta.outputs.labels }}
+ tags: |
+ ${{ env.IMAGE }}:${{ github.sha }}-${{ github.run_number }}
diff --git a/.github/workflows/web.yml b/.github/workflows/web.yml
index 1b4ef4d..26652db 100644
--- a/.github/workflows/web.yml
+++ b/.github/workflows/web.yml
@@ -9,20 +9,12 @@ on:
jobs:
login:
+ env:
+ IMAGE: ghcr.io/openinframap/web
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:
@@ -36,5 +28,5 @@ jobs:
context: ./web
file: ./web/Dockerfile.prod
push: true
- tags: ${{ steps.meta.outputs.tags }}
- labels: ${{ steps.meta.outputs.labels }}
+ tags: |
+ ${{ env.IMAGE }}:${{ github.sha }}-${{ github.run_number }}