Skip to content

Update google/osv-scanner-action action to v1.9.1 (#307) #265

Update google/osv-scanner-action action to v1.9.1 (#307)

Update google/osv-scanner-action action to v1.9.1 (#307) #265

name: Publish Docker image (develop)
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
if: github.repository == 'hiroyoshii/go-aas-proxy'
steps:
- name: Check out the repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
with:
platforms: linux/amd64,linux/arm64
- name: Docker meta
id: meta
uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5.6.1
with:
images: hiroyoshii/go-aas-proxy
- name: Log in to Docker Hub
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and Push to Docker Hub
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
push: true
platforms: ${{ steps.buildx.outputs.platforms }}
provenance: false
tags: hiroyoshii/go-aas-proxy:develop
labels: develop
cache-from: type=gha
cache-to: type=gha,mode=max