Skip to content

Merge pull request #31 from mundialis/renovate/docker-build-push-acti… #18

Merge pull request #31 from mundialis/renovate/docker-build-push-acti…

Merge pull request #31 from mundialis/renovate/docker-build-push-acti… #18

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@3df4ab11eba7bda6032a0b82a6bb43b11571feac # 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@v2
- 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@v5
with:
push: true
pull: true
context: .
tags: ${{ steps.meta.outputs.tags }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}