Skip to content

added new distroless tag & info #24

added new distroless tag & info

added new distroless tag & info #24

name: Docker Build and Push
on:
push:
branches: [ main ]
tags: [ 'v*.*.*' ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push standard version
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
build-args: |
BUILD_ENV=ci
copa_version=0.9.0
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/dockerized-copa:latest
${{ secrets.DOCKERHUB_USERNAME }}/dockerized-copa:0.9.0
- name: Build and push distroless version
uses: docker/build-push-action@v5
with:
context: .
file: ./Distroless
build-args: |
BUILD_ENV=ci
copa_version=0.9.0
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/dockerized-copa:distroless
${{ secrets.DOCKERHUB_USERNAME }}/dockerized-copa:0.9.0-distroless