workflows
All checks were successful
Build and Push Docker Image / build (push) Successful in 15s

This commit is contained in:
Corban-Lee Jones 2024-08-11 20:30:49 +01:00
parent b4cd1c32c5
commit b208dd8c93
3 changed files with 5 additions and 56 deletions

View File

@ -1,19 +0,0 @@
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."

View File

@ -1,28 +0,0 @@
name: Bump 2 Version
run-name: ${{ gitea.actor }} is bumping the version
on: [push]
jobs:
bumpversion:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install bump2version
- name: Bump version
run: |
bump2version patch # You can change 'patch' to 'minor' or 'major' depending on your versioning needs
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}

View File

@ -1,6 +1,10 @@
name: Build and Push Docker Image
run-name: ${{ gitea.actor }} is building and pushing a Docker Image
on: [push]
on:
push:
branches: main
pull_request:
branches: main
jobs:
build:
@ -13,14 +17,6 @@ jobs:
run: |
docker build -t pyrss-website:latest .
# - name: Login to Dockerhub
# run:
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_TOKEN }}
# logout: true
- name: Login to Dockerhub
run: echo ${{ secrets.DOCKER_TOKEN }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin