Bump docker/login-action from 3.2.0 to 3.3.0 #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: linux/amd64 | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- '**' | |
- '!README.md' | |
- '!LICENSE' | |
- '!.github/workflows/update-dockerhub.yml' | |
- '!.github/dependabot.yml' | |
pull_request: | |
branches: [ main ] | |
paths: | |
- '**' | |
- '!README.md' | |
- '!LICENSE' | |
- '!.github/workflows/update-dockerhub.yml' | |
- '!.github/dependabot.yml' | |
repository_dispatch: # Allows action to be triggered via webhook | |
workflow_dispatch: # Allows action to be run manually from the Actions tab | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Build Linux Image | |
uses: docker/[email protected] | |
with: | |
context: . | |
file: ./linux.Dockerfile | |
tags: | | |
dodsleague/build-dodhooks:latest | |
build-args: | | |
BUILDNODE=GitHub (Run Number: ${{ github.run_number }} Run ID: ${{ github.run_id }}) | |
SOURCE_COMMIT=${{ github.sha }} | |
no-cache: true | |
- name: Login to DockerHub | |
if: ${{ github.event_name != 'pull_request' }} | |
uses: docker/[email protected] | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Push to Docker HUB | |
if: ${{ github.event_name != 'pull_request' }} | |
run: docker push dodsleague/build-dodhooks:latest |