Skip to content

Merge pull request #113 from govpf/dependabot/github_actions/docker/b… #303

Merge pull request #113 from govpf/dependabot/github_actions/docker/b…

Merge pull request #113 from govpf/dependabot/github_actions/docker/b… #303

Workflow file for this run

name: Publish Docker images
on:
push:
branches: [ master ]
schedule:
- cron: '0 0 * * 0'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
versions: [2.4]
env:
repo: "govpf/s3-tar-fetcher"
steps:
- name: Checkout
uses: actions/checkout@v4.1.7
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.3.0
- name: Login to DockerHub
uses: docker/login-action@v3.2.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build
uses: docker/build-push-action@v6.0.1
with:
context: .
file: ./latest/Dockerfile
pull: true
push: true
tags: |
${{ env.repo }}:latest
- name: Update repo description
uses: peter-evans/dockerhub-description@v4.0.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: "${{ env.repo }}"