Skip to content

Commit

Permalink
ci: add action to build and push docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
helder-moreira committed Mar 30, 2021
1 parent e619476 commit 46809bb
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: ci

on:
push:
tags:
- "*"

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- 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 and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
platforms: linux/amd64,linux/arm64
tags: ghcr.io/tendermint/faucet:latest,ghcr.io/tendermint/faucet:${GITHUB_REF#refs/*/}

0 comments on commit 46809bb

Please sign in to comment.