Sync from khs1994-docker/lnmp@b0989096d42e41aba685b520c6b1a9fffdc26a3… #158
This file contains 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
on: | |
push: | |
branches: | |
- "master" | |
tags: | |
- "*" | |
workflow_dispatch: | |
name: Build docker iamge | |
defaults: | |
run: | |
shell: bash --noprofile --norc -exo pipefail {0} | |
jobs: | |
ci: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@main | |
with: | |
fetch-depth: 1 | |
- uses: docker-practice/actions-setup-docker@master | |
- run: | | |
echo ${DOCKER_PASSWORD} | docker login -u khs1994 --password-stdin | |
echo ${GHCR_IO_TOKEN} | docker login -u khs1994 --password-stdin ghcr.io | |
echo ${CODING_DOCKER_PASSWORD} | docker login -u khs1994-1601432822176 --password-stdin pcit-docker.pkg.coding.net | |
env: | |
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}} | |
GHCR_IO_TOKEN: ${{ secrets.GHCR_IO_TOKEN }} | |
CODING_DOCKER_PASSWORD: ${{secrets.CODING_DOCKER_PASSWORD}} | |
- run: | | |
docker buildx build \ | |
--cache-from=ghcr.io/khs1994/k8s-cfssl:cache \ | |
--cache-to=ghcr.io/khs1994/k8s-cfssl:cache \ | |
-t khs1994/k8s-cfssl \ | |
-t ghcr.io/khs1994/k8s-cfssl \ | |
-t pcit-docker.pkg.coding.net/khs1994-docker/khs1994/k8s-cfssl \ | |
--push \ | |
--platform linux/amd64,linux/arm64 \ | |
cfssl | |
name: build khs1994/k8s-cfssl | |
- name: build khs1994/fcos | |
run: | | |
docker buildx build \ | |
--cache-from=ghcr.io/khs1994/fcos:cache \ | |
--cache-to=ghcr.io/khs1994/fcos:cache \ | |
-t khs1994/fcos \ | |
-t ghcr.io/khs1994/fcos \ | |
-t pcit-docker.pkg.coding.net/khs1994-docker/khs1994/fcos \ | |
--push \ | |
--platform linux/amd64,linux/arm64 \ | |
coreos/server |