Skip to content

change upload-artifact version #50

change upload-artifact version

change upload-artifact version #50

name: Build and Push Images
on:
push:
branches:
- "main"
paths-ignore:
- "**/*.png"
pull_request:
branches:
- "main"
paths-ignore:
- "**/*.png"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# build and push image
- name: Login to DockerHub
if: github.event_name == 'push'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and Push Commit Image
if: github.event_name == 'push'
run: sh push-images.sh
- name: Upload Build Artifacts
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: multiarch-docker-images
path: '**/*.tar.gz'