Skip to content

Commit

Permalink
chore: Docker image tag (#4)
Browse files Browse the repository at this point in the history
chore: docker image tag
  • Loading branch information
valeriocomo authored Oct 11, 2024
1 parent db002d7 commit ee08f44
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 50 deletions.
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 }}

0 comments on commit ee08f44

Please sign in to comment.