removing unrelated github action changes.

This commit is contained in:
Dan 2022-11-17 15:00:08 -05:00
parent f05e972f15
commit 56109f3cf7
2 changed files with 1 additions and 61 deletions

View File

@ -1,8 +1,7 @@
name: Tests
on:
- push:
branches: [ 'main' ] # just for testing for a bit.
- push
- pull_request
defaults:

View File

@ -1,59 +0,0 @@
name: run_ci
on:
workflow_dispatch:
push:
branches: ['feature/releases'] # just for testing for a bit.
tags:
- 'v*'
pull_request:
branches:
- 'main'
release:
types: [published]
env:
REGISTRY: ghcr.io
BACKEND_IMAGE: spiffworkflow-backend
jobs:
build-and-push-backend-docker:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
sartography/spiffworkflow-backend
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# Setting up Docker Buildx with docker-container driver is required
# at the moment to be able to use a subdirectory with Git context
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push Backend Docker Image
uses: docker/build-push-action@v3
with:
context: "{{defaultContext}}:spiffworkflow-backend"
push: true
tags: sartography/spiffworkflow-backend:latest
labels: ${{ steps.meta.outputs.labels }}