Skip to content

Merge pull request #45 from mundialis/renovate/actions-checkout-digest #29

Merge pull request #45 from mundialis/renovate/actions-checkout-digest

Merge pull request #45 from mundialis/renovate/actions-checkout-digest #29

Workflow file for this run

name: Docker
on:
push:
branches: [s1tbx]
jobs:
docker:
name: build and push
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Create image and tag names
id: meta
uses: docker/metadata-action@v5
with:
images: mundialis/esa-snap
tags: |
type=sha,enable=true,priority=100,prefix=s1tbx-,suffix=,format=short
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 's1tbx') }}
flavor: |
latest=auto
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v6
with:
push: true
pull: true
context: .
tags: ${{ steps.meta.outputs.tags }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}