Skip to content

Commit

Permalink
Merge pull request #14 from Terisback/master
Browse files Browse the repository at this point in the history
Add production env to workflow
  • Loading branch information
JackBekket authored Nov 17, 2022
2 parents 6c55c27 + 6b39180 commit 5ef893b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Build and push

on:
workflow_dispatch:
push:
branches:
- 'master'
Expand All @@ -12,6 +13,7 @@ env:
jobs:
docker:
runs-on: ubuntu-latest
environment: production
steps:
-
name: Checkout
Expand All @@ -32,6 +34,10 @@ jobs:
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
-
name: Put .env in sources
run: |
printf "%s" "${{ secrets.ENV_FILE }}" > .env
-
name: Build and push
uses: docker/build-push-action@v3
Expand All @@ -42,4 +48,4 @@ jobs:
push: true
platforms: linux/amd64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 5ef893b

Please sign in to comment.