Skip to content

Merge pull request #242 from sandialabs/dependabot/github_actions/cod… #553

Merge pull request #242 from sandialabs/dependabot/github_actions/cod…

Merge pull request #242 from sandialabs/dependabot/github_actions/cod… #553

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/polymers: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/polymers: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/polymers:${{steps.tag.outputs.tag}}
mrbuche/polymers:latest
ghcr.io/sandialabs/polymers:${{steps.tag.outputs.tag}}
ghcr.io/sandialabs/polymers:latest