Skip to content

Commit

Permalink
Fix ver
Browse files Browse the repository at this point in the history
  • Loading branch information
avdata99 committed Oct 21, 2024
1 parent 343a313 commit 441b544
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/publish-develop-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,31 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Read CKAN_UNI_VERSION from docker/ckan/files/env/base.env
run: |
echo "CKAN_UNI_VERSION=$(grep CKAN_UNI_VERSION docker/ckan/files/env/base.env | cut -d '=' -f2)" >> $GITHUB_ENV
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build develop UNCKAN ver ${{ CKAN_UNI_VERSION }}

- name: Build develop UNCKAN ver ${{ env.CKAN_UNI_VERSION }}
uses: docker/build-push-action@v2
with:
context: docker/ckan
file: docker/ckan/Dockerfile
push: true
build-args: |
ENV_NAME=gh-action
TZ=America/Argentina/Cordoba
tags: |
avdata99/unckan:dev
avdata99/unckan:dev-${{ CKAN_UNI_VERSION }}
avdata99/unckan:dev-${{ env.CKAN_UNI_VERSION }}
env:
CKAN_UNI_VERSION: ${{ env.CKAN_UNI_VERSION }}
13 changes: 11 additions & 2 deletions .github/workflows/publish-latest-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,31 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Read CKAN_UNI_VERSION from docker/ckan/files/env/base.env
run: |
echo "CKAN_UNI_VERSION=$(grep CKAN_UNI_VERSION docker/ckan/files/env/base.env | cut -d '=' -f2)" >> $GITHUB_ENV
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build develop UNCKAN ver ${{ CKAN_UNI_VERSION }}

- name: Build develop UNCKAN ver ${{ env.CKAN_UNI_VERSION }}
uses: docker/build-push-action@v2
with:
context: docker/ckan
file: docker/ckan/Dockerfile
push: true
build-args: |
ENV_NAME=gh-action
TZ=America/Argentina/Cordoba
tags: |
avdata99/unckan:latest
avdata99/unckan:prod-${{ CKAN_UNI_VERSION }}
avdata99/unckan:${{ env.CKAN_UNI_VERSION }}
env:
CKAN_UNI_VERSION: ${{ env.CKAN_UNI_VERSION }}

0 comments on commit 441b544

Please sign in to comment.