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

chore: Docker image tag #4

Merged
merged 18 commits into from
Oct 11, 2024
43 changes: 0 additions & 43 deletions .github/workflows/pull-request.yml

This file was deleted.

29 changes: 22 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ name: release
on:
push:
branches: [main]
# for future develpments
# tags:
# - v*
tags:
- "v*"
pull_request:
branches: [main]

permissions:
# To push Docker images to GitHub
Expand All @@ -15,6 +16,20 @@ jobs:
docker-build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: |
ghcr.io/teamdigitale/dataviz-srv:
# generate Docker tags based on the following events/attributes
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

Expand All @@ -35,7 +50,7 @@ jobs:
with:
file: "Dockerfile.app"
platforms: linux/amd64
push: true
tags: |
ghcr.io/teamdigitale/dataviz-srv:latest
ghcr.io/teamdigitale/dataviz-srv:0.0.1
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Loading