Skip to content

chore: add image tags #19

chore: add image tags

chore: add image tags #19

Workflow file for this run

name: Release Image
on: push
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.22
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: v1.55
build-push-image:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
labels: ${{ steps.meta.outputs.labels }}
file: build/Dockerfile
tags: |
infrolabs/infro-core:latest
infrolabs/infro-core:${{ steps.vars.outputs.tag }}
infrolabs/infro-core:${{ github.sha }}