indimail-web:stream9 container image #27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: indimail-web:stream9 container image | |
on: | |
push: | |
paths: | |
- '**/indimail-src/stream9.indimail-web.bin' | |
- .github/workflows/indimail-web-stream9.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 }}" | podman login ghcr.io --username "${{ github.repository_owner }}" --password-stdin | |
echo "${{ secrets.DOCKER_PAT }}" | podman login docker.io --username cprogrammer --password-stdin | |
- name: build | |
run: | | |
sudo apt-get install podman | |
cp indimail-src/stream9.indimail-web.bin Dockerfile | |
podman build --cap-add SYS_NICE --tag "ghcr.io/${{ github.repository_owner }}/indimail-web:stream9" . | |
- name: push | |
run: | | |
podman push "ghcr.io/${{ github.repository_owner }}/indimail-web:stream9" | |
podman image tag "ghcr.io/${{ github.repository_owner }}/indimail-web:stream9" docker.io/cprogrammer/indimail-web:stream9 | |
podman push docker.io/cprogrammer/indimail-web:stream9 |