mirror of
https://github.com/watn3y/steamsalty.git
synced 2025-04-19 16:01:22 +02:00
29 lines
No EOL
794 B
YAML
29 lines
No EOL
794 B
YAML
name: Build and Push to Docker Hub on changes to master branch
|
|
|
|
on:
|
|
push:
|
|
|
|
jobs:
|
|
docker:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out the repo
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Login to GitHub Container Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: ${{secrets.DOCKERHUB_USERNAME}}
|
|
password: ${{secrets.DOCKERHUB_TOKEN}}
|
|
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
platforms: linux/amd64,linux/386,linux/arm64,linux/arm/v7
|
|
push: true
|
|
tags: |
|
|
${{ github.repository }}:${{ github.ref_name }}
|
|
${{ github.repository }}:commit-${{ github.sha }} |