Merge pull request #3 from waku-org/push-docker

Push to docker
This commit is contained in:
Alvaro Revuelta 2023-11-01 15:39:37 +01:00 committed by GitHub
commit c7dc5b9829
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

32
.github/workflows/push.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: Push Image (master)
on:
push:
branches:
- 'main'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- id: commit
uses: pr-mpt/actions-commit-hash@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v3
with:
push: true
# temporal, migrate to waku-org
tags:
alrevuelta/waku-frontend:${{ steps.commit.outputs.short }}
alrevuelta/waku-frontend:latest
build-args: BUILD_VERSION=${{ steps.commit.outputs.hash }}