Skip to content

added check for build completeness #37

added check for build completeness

added check for build completeness #37

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