feat: sumac release #27
Workflow file for this run
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: Docker | |
on: | |
pull_request: | |
branches: | |
- main | |
workflow_call: | |
env: | |
REGISTRY: docker.io | |
IMAGE_NAME: docker.io/ednxops/drydock-backups | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Python Semantic Release | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: | | |
pip install -e . | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Log into registry ${{ env.REGISTRY }} | |
uses: docker/login-action@v3 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
- name: Setup Tutor | |
run: | | |
tutor plugins disable indigo mfe | |
tutor plugins enable drydock-backups | |
- name: Build Docker image | |
run: | | |
tutor images build backups | |
- name: Push Docker image | |
if: github.event_name == 'workflow_dispatch' | |
run: | | |
tutor images push backups |