From add0703269e99f116ef73927c91cfda3b8ff534b Mon Sep 17 00:00:00 2001 From: Seungmin Kim <8457324+ehfd@users.noreply.github.com> Date: Wed, 6 Sep 2023 22:42:18 +0900 Subject: [PATCH] Enable tagged containers by commit --- .github/FUNDING.yml | 2 +- .github/workflows/container-publish.yml | 14 ++++++++++---- Dockerfile | 2 ++ 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index a95c46e..fcb5b14 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1 +1 @@ -github: [ehfd] \ No newline at end of file +github: [ehfd, danisla] \ No newline at end of file diff --git a/.github/workflows/container-publish.yml b/.github/workflows/container-publish.yml index 47e2f27..2eb5332 100644 --- a/.github/workflows/container-publish.yml +++ b/.github/workflows/container-publish.yml @@ -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 @@ -33,7 +35,7 @@ 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 @@ -41,6 +43,7 @@ jobs: 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 @@ -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 @@ -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 @@ -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 }} diff --git a/Dockerfile b/Dockerfile index e3638ed..3ce306a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \