Skip to content

Commit

Permalink
Switching to dockerhub, coz where is dat image?
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Fufezan committed Apr 30, 2024
1 parent 2fe5bd9 commit 6929616
Show file tree
Hide file tree
Showing 2 changed files with 93 additions and 93 deletions.
88 changes: 44 additions & 44 deletions .github/workflows/publish_to_dockerhub.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
# name: Build and Push Docker image

# on:
# push:
# tags:
# - 'v*' # Trigger workflow only on tags that start with 'v'

# jobs:
# build-and-push:
# runs-on: ubuntu-latest
# steps:
# - name: Check out the repo
# uses: actions/checkout@v2
name: Build and Push Docker image

on:
push:
tags:
- 'v*' # Trigger workflow only on tags that start with 'v'

jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2

# - name: Set up Python
# uses: actions/setup-python@v2
# with:
# python-version: '3.10'

# - name: Install hatch
# run: pip install hatch

# - name: Extract version using Hatch
# id: get_version
# run: echo "VERSION=$(hatch version)" >> $GITHUB_ENV

# - name: Login to Docker Hub
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_PASSWORD }}

# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1

# - name: Build and push Docker image
# uses: docker/build-push-action@v2
# with:
# context: .
# file: ./Dockerfile
# push: true
# tags: zerealfu/fass:${{ env.VERSION }}

# - name: Image digest
# run: echo ${{ steps.docker_build.outputs.digest }}
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'

- name: Install hatch
run: pip install hatch

- name: Extract version using Hatch
id: get_version
run: echo "VERSION=$(hatch version)" >> $GITHUB_ENV

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: zerealfu/fass:${{ env.VERSION }}

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
98 changes: 49 additions & 49 deletions .github/workflows/publish_to_ghcr.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
name: Build and Push Docker image to GHCR

on:
push:
tags:
- 'v*'

jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Check out the repo
uses: actions/checkout@v2
# name: Build and Push Docker image to GHCR

# on:
# push:
# tags:
# - 'v*'

# jobs:
# build-and-push:
# runs-on: ubuntu-latest
# permissions:
# contents: read
# packages: write

# steps:
# - name: Check out the repo
# uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'

- name: Install hatch
run: pip install hatch

- name: Extract version using Hatch
id: get_version
run: echo "VERSION=$(hatch version)" >> $GITHUB_ENV

- name: Log in to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GTOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: ghcr.io/${{ github.repository }}/fass:${{ env.VERSION }}

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
# - name: Set up Python
# uses: actions/setup-python@v2
# with:
# python-version: '3.10'

# - name: Install hatch
# run: pip install hatch

# - name: Extract version using Hatch
# id: get_version
# run: echo "VERSION=$(hatch version)" >> $GITHUB_ENV

# - name: Log in to GitHub Container Registry
# uses: docker/login-action@v1
# with:
# registry: ghcr.io
# username: ${{ github.repository_owner }}
# password: ${{ secrets.GTOKEN }}

# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1

# - name: Build and push Docker image
# uses: docker/build-push-action@v2
# with:
# context: .
# file: ./Dockerfile
# push: true
# tags: ghcr.io/${{ github.repository }}/fass:${{ env.VERSION }}

# - name: Image digest
# run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit 6929616

Please sign in to comment.