Skip to content

Merge pull request #30 from cmathews393/#29 #22

Merge pull request #30 from cmathews393/#29

Merge pull request #30 from cmathews393/#29 #22

Workflow file for this run

name: Docker Push On Commit
on:
push:
branches:
- main
- dev
- test
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Log in to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_APP_PASS }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: |
0xchloe/spotiplex:${{ github.ref_name == 'main' && 'latest' || github.ref_name }}