Skip to content

Update README.md

Update README.md #2

name: Docker
on:
push:
# Publish `master` as Docker `latest` image.
branches:
- master
env:
# TODO: Change variable to your image's name.
IMAGE_NAME: bitcoin-cat
jobs:
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
push:
runs-on: ubuntu-latest
if: github.event_name == 'push'
env:
DOCKER_CLI_EXPERIMENTAL: "enabled"
steps:
- uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
with:
install: true
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build image
run: >-
docker buildx build --push
--tag ghcr.io/vulpemventures/$IMAGE_NAME:latest
--platform linux/arm64,linux/amd64 .