Skip to content

v0.1.0-rc.4

v0.1.0-rc.4 #10

Workflow file for this run

name: Build and publish a Docker image
on:
push:
tags:
-'*'
- '**'
release:
types: [published]
env:
REGISTRY: docker.io
REP_NAME: swapica/indexer
IMAGE_NAME: swapica/indexer:${{ github.ref_name }}
jobs:
build:
name: Build and publish image
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_LOGIN }}
password: ${{ secrets.DOCKERHUB_PASS }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push Docker images
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ env.IMAGE_NAME }}