Skip to content

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

Bump codecov/codecov-action from 4 to 5

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

Workflow file for this run

name: Docker
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
release:
types: [ "published" ]
jobs:
test:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: build
uses: docker/build-push-action@v6
with:
push: false
tags: mrbuche/statmechcrack:test
latest:
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: login
uses: docker/login-action@v3
with:
username: mrbuche
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: build-push
uses: docker/build-push-action@v6
with:
push: true
tags: mrbuche/statmechcrack:latest
versioned:
if: github.event_name == 'release'
runs-on: ubuntu-latest
steps:
- name: tag
id: tag
uses: dawidd6/action-get-tag@v1
with:
strip_v: true
- name: checkout
uses: actions/checkout@v4
- name: login
uses: docker/login-action@v3
with:
username: mrbuche
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: login
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: build-push
uses: docker/build-push-action@v6
with:
push: true
tags: |
mrbuche/statmechcrack:${{steps.tag.outputs.tag}}
mrbuche/statmechcrack:latest
ghcr.io/sandialabs/statmechcrack:${{steps.tag.outputs.tag}}
ghcr.io/sandialabs/statmechcrack:latest