Skip to content

Merge pull request #14 from EdwardBot/dependabot/npm_and_yarn/node-fe… #17

Merge pull request #14 from EdwardBot/dependabot/npm_and_yarn/node-fe…

Merge pull request #14 from EdwardBot/dependabot/npm_and_yarn/node-fe… #17

Workflow file for this run

name: deploy
on:
push:
branches:
- 'master'
jobs:
containerd:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
with:
buildkitd-flags: --debug
-
name: Set up containerd
uses: crazy-max/ghaction-setup-containerd@v1
-
name: Build Docker image
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm64
tags: ${{ secrets.DOCKER_URL }}/bot:latest
outputs: type=oci,dest=/tmp/image.tar
-
name: Import image in containerd
run: |
sudo ctr i import --base-name ${{ secrets.DOCKER_URL }}/bot --digests --all-platforms /tmp/image.tar
-
name: Push image with containerd
run: |
sudo ctr --debug i push --user "Bendi:${{ secrets.PASSWORD }}" ${{ secrets.DOCKER_URL }}/bot:latest