Skip to content

Commit

Permalink
chore: test
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriocomo committed Oct 11, 2024
1 parent 2d5003b commit b744bc2
Showing 1 changed file with 24 additions and 8 deletions.
32 changes: 24 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: release
name: pull-request

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,21 @@ 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=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

Expand All @@ -35,7 +51,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 b744bc2

Please sign in to comment.