-
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (28 loc) · 1.12 KB
/
indimail-mta-gentoo.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
name: indimail-mta:gentoo container image
on:
push:
paths:
- '**/indimail-src/gentoo.indimail-mta.bin'
- .github/workflows/indimail-mta-gentoo.yml
- '!**.md'
workflow_dispatch:
jobs:
build_and_push:
name: build and push container image
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v2
- name: login
run: |
echo "${{ secrets.GHCR_TOKEN }}" | docker login ghcr.io --username "${{ github.repository_owner }}" --password-stdin
echo "${{ secrets.DOCKER_PAT }}" | docker login docker.io --username cprogrammer --password-stdin
- name: build
run: |
cp indimail-src/gentoo.indimail-mta.bin Dockerfile
docker build --tag "ghcr.io/${{ github.repository_owner }}/indimail-mta:gentoo" .
- name: push
run: |
docker push "ghcr.io/${{ github.repository_owner }}/indimail-mta:gentoo"
docker image tag "ghcr.io/${{ github.repository_owner }}/indimail-mta:gentoo" docker.io/cprogrammer/indimail-mta:gentoo
docker push docker.io/cprogrammer/indimail-mta:gentoo