Skip to content

Commit

Permalink
Added action to build production image on release
Browse files Browse the repository at this point in the history
  • Loading branch information
osirisguitar committed Oct 4, 2023
1 parent ecb8c06 commit 6192a23
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Production

on:
release:
types: [published]

jobs:
production:
runs-on: ubuntu-latest

strategy:
matrix:
context:
- backend
- frontend

steps:
- name: 🛎️ Checkout
uses: actions/checkout@v3

- name: 🔐 Login to Docker Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: 🔧 Build and push Docker Image
uses: docker/build-push-action@v4
with:
push: true
tags: |
ghcr.io/bostads-ab-mimer/yggdrasil-tenant-portal-${{ matrix.context }}:release-${{ github.event.release.tag_name }}

0 comments on commit 6192a23

Please sign in to comment.