Skip to content

Commit

Permalink
Enable tagged containers by commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ehfd authored Sep 6, 2023
1 parent 6e7cf0a commit add0703
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github: [ehfd]
github: [ehfd, danisla]
14 changes: 10 additions & 4 deletions .github/workflows/container-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ jobs:
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Fetch commit time
run: echo "COMMIT_TIME_GIT=$(TZ=UTC git show -s --format='%cd' --date=format-local:'%Y%m%d%H%M%S')" >> $GITHUB_ENV
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
Expand All @@ -33,14 +35,15 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Ubuntu 20.04 Container image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
build-args: |
UBUNTU_RELEASE=20.04
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:20.04
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:20.04-${{ env.COMMIT_TIME_GIT }}
labels: ${{ steps.meta.outputs.labels }}
build-2204:
runs-on: ubuntu-latest
Expand All @@ -49,7 +52,9 @@ jobs:
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Fetch commit time
run: echo "COMMIT_TIME_GIT=$(TZ=UTC git show -s --format='%cd' --date=format-local:'%Y%m%d%H%M%S')" >> $GITHUB_ENV
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
Expand All @@ -63,7 +68,7 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Ubuntu 22.04 Container image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
build-args: |
UBUNTU_RELEASE=22.04
Expand All @@ -72,4 +77,5 @@ jobs:
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:22.04
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:22.04-${{ env.COMMIT_TIME_GIT }}
labels: ${{ steps.meta.outputs.labels }}
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ Pin-Priority: -1" > /etc/apt/preferences.d/firefox-nosnap && \
dolphin-plugins \
dbus-x11 \
fcitx \
fcitx-frontend-gtk2 \
fcitx-frontend-gtk3 \
fcitx-frontend-qt5 \
fcitx-module-dbus \
fcitx-module-kimpanel \
Expand Down

0 comments on commit add0703

Please sign in to comment.