Skip to content

chore(deps): bump the all group across 1 directory with 7 updates #154

chore(deps): bump the all group across 1 directory with 7 updates

chore(deps): bump the all group across 1 directory with 7 updates #154

Workflow file for this run

name: docker
on:
push:
branches:
- "main"
tags:
- "v*.*.*"
pull_request:
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Docker meta
id: meta
uses: docker/metadata-action@v6
with:
# list of Docker images to use as base name for tags
images: |
nowsecure/nowsecure-ci
# generate Docker tags based on the following events/attributes
tags: |
type=schedule
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
- name: Login to Docker Hub
uses: docker/login-action@v4
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
with:
platforms: "linux/amd64,linux/arm64"
- name: Version Info
id: version_step
run: |
if [[ "${{ github.ref }}" == "refs/tags/v"* ]]; then
VERSION="${{ github.ref_name }}"
else
VERSION="dev-${{ github.sha }}"
fi
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
- name: Build and push
uses: docker/build-push-action@v7
with:
platforms: "linux/amd64,linux/arm64"
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
VERSION=${{ steps.version_step.outputs.version }}