-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (72 loc) · 2.91 KB
/
integration.yaml
File metadata and controls
79 lines (72 loc) · 2.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Integration
on:
push:
branches:
- master
jobs:
preparation:
runs-on: ubuntu-latest
steps:
- name: preparation
run: echo "Preparing to deploy ..."
- name: checks out the repository
uses: actions/checkout@v4
# - name: Make HTTP request
# uses: fjogeleit/http-request-action@v1
# with:
# url: 'http://api.exchangeratesapi.io/v1/latest?access_key=${{ secrets.API_KEY }}&symbols=USD,AUD,CAD,PLN,MON'
# method: GET
# customHeader: '{"Content-Type": "application/json"}'
# - name: Post to a Slack channel
# id: slack
# uses: slackapi/slack-github-action@v1.24.0
# with:
# # Slack channel id, channel name, or user id to post message.
# # See also: https://api.slack.com/methods/chat.postMessage#channels
# # You can pass in multiple channels to post to by providing a comma-delimited list of channel IDs.
# channel-id: 'C067BEE3G3H'
# # For posting a simple plain text message
# slack-message: "GitHub build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
# env:
# SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
- name: Send mail
uses: dawidd6/action-send-mail@v3
with:
# Specify connection via URL (replaces server_address, server_port, secure,
# username and password)
#
# Format:
#
# * smtp://user:password@server:port
# * smtp+starttls://user:password@server:por
# Required mail server address if not connection_url:
server_address: smtp.gmail.com
# Server port, default 25:
server_port: 465
# Optional whether this connection use TLS (default is true if server_port is 465)
secure: true
# Optional (recommended) mail server username:
username: ${{secrets.MAIL_USERNAME}}
# Optional (recommended) mail server password:
password: ${{secrets.MAIL_PASSWORD}}
# Required mail subject:
subject: Github Actions job result
# Required recipients' addresses:
to: syjjem093@gmail.com
# Required sender full name (address can be skipped):
from: sijuadec@gmail.com
# Optional plain body:
body: Build job of ${{github.repository}} completed successfully!
- name: "Logs into docker"
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: "Build our code"
env:
IMAGE_NAME: cyclobold123
VERSION: newest
USERNAME: syjjem093
run: |
docker build -t $USERNAME/$IMAGE_NAME:$VERSION .
docker push $USERNAME/$IMAGE_NAME:$VERSION