Skip to content

chore: push to hash only tag #13

chore: push to hash only tag

chore: push to hash only tag #13

Workflow file for this run

name: docker build and push
on:
push:
branches:
- main
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract and manipulate tag name
id: extract_tag
run: |
SHORT_SHA=$(git rev-parse --short HEAD)
CLEAN_TAG_NAME="${SHORT_SHA}"
echo "CLEAN_TAG_NAME=${CLEAN_TAG_NAME}" >> $GITHUB_ENV
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: thearyadev0/top500-aggregator:${{ env.CLEAN_TAG_NAME }}