-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (47 loc) · 1.45 KB
/
main.yml
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
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- id: meta
uses: docker/metadata-action@v3
with:
images: |
sstc/gocron
tags: |
type=raw,value=latest
type=raw,value=scratch
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: :scratch
uses: docker/build-push-action@v4
with:
push: true
platforms: linux/amd64,linux/arm64
file: ./scratch/Dockerfile
tags: ${{ steps.meta.outputs.tags }}
- name: :all
uses: docker/build-push-action@v4
with:
push: true
platforms: linux/amd64,linux/arm64
file: ./all/Dockerfile
tags: sstc/gocron:all
- uses: actions/checkout@v2
- uses: christian-korneck/update-container-description-action@v1
env:
DOCKER_USER: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKER_PASS: ${{ secrets.DOCKERHUB_PASSWORD }}
with:
destination_container_repo: sstc/gocron
short_description: https://github.com/${{ github.repository }}
- uses: up9cloud/action-notify@master
if: cancelled() == false
env:
GITHUB_JOB_STATUS: ${{ job.status }}
TELEGRAM_BOT_TOKEN: ${{secrets.TELEGRAM_BOT_TOKEN}}
TELEGRAM_CHAT_ID: ${{secrets.TELEGRAM_CHAT_ID}}