Skip to content

Bump codecov/codecov-action from 4 to 5 #387

Bump codecov/codecov-action from 4 to 5

Bump codecov/codecov-action from 4 to 5 #387

Workflow file for this run

---
name: Docker
on:
workflow_dispatch:
push:
branches:
- develop
paths:
- "**"
release:
types: [published]
env:
IMAGE_NAME: opendatacube/explorer
jobs:
docker:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/develop' || github.event_name == 'release'
steps:
- name: Checkout git
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get unstable git tag
run: >
echo "UNSTABLE_TAG=$(git describe --tags)" >> $GITHUB_ENV
- name: Log the unstable tag
run: echo $UNSTABLE_TAG
- name: Build and Push unstable + latest Docker image tag
if: github.event_name != 'release'
uses: whoan/docker-build-with-cache-action@v8
with:
image_name: ${{ env.IMAGE_NAME }}
username: gadockersvc
image_tag: ${{ env.UNSTABLE_TAG }},latest
password: "${{ secrets.DockerPassword }}"
build_extra_args: "--build-arg=ENVIRONMENT=deployment"
# This section is for releases
- name: Get tag for this build if it exists
if: github.event_name == 'release'
run: >
echo "RELEASE=$(git describe --abbrev=0 --tags)" >> $GITHUB_ENV
- name: Log the tag
run: echo $RELEASE
- name: Build and Push release if we have a tag
uses: whoan/docker-build-with-cache-action@v8
if: github.event_name == 'release'
with:
image_name: ${{ env.IMAGE_NAME }}
image_tag: ${{ env.RELEASE }}
username: gadockersvc
password: "${{ secrets.DockerPassword }}"
build_extra_args: "--build-arg=ENVIRONMENT=deployment"
- name: Update Docker Hub Description
uses: peter-evans/dockerhub-description@v4
with:
username: gadockersvc
password: ${{ secrets.DockerPassword }}
repository: ${{ env.IMAGE_NAME }}
readme-filepath: README.md
short-description: Open Data Cube Explorer Image