Skip to content

Commit

Permalink
build: update action versions
Browse files Browse the repository at this point in the history
  • Loading branch information
BelgianNoise committed May 3, 2024
1 parent 09e1131 commit 41dc1b2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/publish-dl-downer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,31 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: main

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

- name: Login to GitHub Container Registry
uses: docker/login-action@v1.10.0
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
username: ${{ github.actor }}
password: ${{ secrets.GHCR_TOKEN }}

- name: Convert repository to lowercase
id: repo
# github.repository is in the format "owner/repo"
run: echo "::set-output name=lowercase::$(echo ${{ github.repository }} | awk '{print tolower($0)}')"
- name: set lower case owner name
run: |
echo "OWNER_LC=${OWNER,,}" >>${GITHUB_ENV}
env:
OWNER: '${{ github.repository_owner }}'

- name: Build and push Docker image
uses: docker/build-push-action@v2.7.0
uses: docker/build-push-action@v5
with:
context: ./dl-downer/
push: true
tags: |
ghcr.io/${{ steps.repo.outputs.lowercase }}/dl-downer:${{ github.sha }}
ghcr.io/${{ steps.repo.outputs.lowercase }}/dl-downer:latest
ghcr.io/${{ env.OWNER_LC }}/dl-downer:${{ github.sha }}
ghcr.io/${{ env.OWNER_LC }}/dl-downer:latest
2 changes: 2 additions & 0 deletions dl-downer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Use an official Python runtime as the base image
FROM python:3.12

LABEL org.opencontainers.image.source https://github.com/belgiannoise/dl-utils

VOLUME /downloads
VOLUME /storage_states
VOLUME /cdm
Expand Down

0 comments on commit 41dc1b2

Please sign in to comment.