Skip to content

add action: push docker image on tag #1

add action: push docker image on tag

add action: push docker image on tag #1

name: build and push
on:
push:
tags:
- '*'
permissions:
contents: read
packages: write
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to ghcr.io
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push fork image
uses: docker/[email protected]
with:
context: .
platforms: linux/amd64
push: true
tags: ghcr.io/lidofinance/automaton:${{ github.ref_name }}