Skip to content

Push images (#23)

Push images (#23) #6

Workflow file for this run

name: Push
on:
push:
branches:
- main
jobs:
log:
runs-on: ubuntu-latest
steps:
- name: Log event
run: |
echo "json: ${{ github }}"
printenv
deploy_production:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: build
uses: ./.github/actions/build
with:
push: true
username: ${{ github.actor}}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy to production
run: |
echo "Deploying to production"
# Your deployment script here
- name: Notify (scuccessful deployment)
if: success()
uses: ./.github/actions/slack
with:
message: ":tada: Deployed to production :white_check_mark: successfully!"
webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
- name: Notify (failed deployment)
if: failure()
uses: ./.github/actions/slack
with:
message: ":fail: Failed to deploy to production :red_flag: successfully!"
webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}