31 lines
729 B
YAML
31 lines
729 B
YAML
|
name: docker
|
||
|
|
||
|
on:
|
||
|
# Runs on pushes targeting the default branch
|
||
|
push:
|
||
|
branches: ["master"]
|
||
|
# Allows you to run this workflow manually from the Actions tab
|
||
|
workflow_dispatch:
|
||
|
|
||
|
jobs:
|
||
|
docker:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
|
||
|
- name: Set up Docker Buildx
|
||
|
uses: docker/setup-buildx-action@v2
|
||
|
|
||
|
- name: Login to DockerHub
|
||
|
uses: docker/login-action@v2
|
||
|
with:
|
||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||
|
|
||
|
- name: Build Container
|
||
|
uses: docker/build-push-action@v2
|
||
|
with:
|
||
|
push: true
|
||
|
tags: sarsoo/sarsooxyz.hugo:latest
|
||
|
file: Dockerfile.pub
|