Skip to content

Commit

Permalink
test(.github): DES-2668 build-preview workflow
Browse files Browse the repository at this point in the history
Experience suggests I need to commit this to main to be able to test it.
  • Loading branch information
wesleyboar committed Feb 22, 2024
1 parent 45e8cfc commit b9a70a5
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: ci

on:
workflow_dispatch:
push:
branches:
- '*'

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v2
with:
push: true
tags: designsafeci/ds-use-case-template:latest
-
name: Post build status in slack
id: slack
uses: slackapi/[email protected]
with:
# This data can be any valid JSON from a previous step in the GitHub Action
payload: |
{
"build_status": "${{ job.status }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 comments on commit b9a70a5

Please sign in to comment.