-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 955 Bytes
/
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
name: CI
on:
push:
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
PIPENV_VENV_IN_PROJECT: 1
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
PYMONGOIM__MONGO_VERSION: 4.4
PYMONGOIM__OPERATING_SYSTEM: ubuntu
jobs:
docker:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v1
with:
registry: ebl.badw.de
username: ${{ secrets.EBL_REGISTRY_USERNAME }}
password: ${{ secrets.EBL_REGISTRY_PASSWORD }}
- id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: |
ebl.badw.de/mongosync:main
${{format('ebl.badw.de/mongosync:main.{0}', github.run_number)}}