Skip to content

remove python tests #129

remove python tests

remove python tests #129

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Build and publish
on:
push:
# Publish `main` as Docker `latest` image.
branches:
- main
# Publish `v1.2.3` tags as releases.
tags:
- v*
pull_request:
branches: [ main ]
env:
IMAGE_NAME: ghcr.io/ibm/apiconnect-trawler/trawler
jobs:
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
publish:
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- name: Clone the repository
uses: actions/checkout@v2
- name: Buildah Action
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.IMAGE_NAME }}
tags: latest ${{ github.ref_name }}
containerfiles: |
./Containerfile
- name: Log in to the GitHub Container registry
uses: redhat-actions/podman-login@v1
with:
registry: "ghcr.io"
username: ${{ github.actor }}
password: ${{ secrets.CR_PAT }}
- name: Push to GitHub Container Repository
id: push-to-ghcr
uses: redhat-actions/push-to-registry@v2
with:
registry: "ghcr.io"
image: ${{ steps.build-image.outputs.image }}
tags: latest ${{ github.ref_name }}