perf: remove winetricks cache for shrinking image #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build python wine | |
on: | |
push: | |
paths: | |
- 'Dockerfile' | |
workflow_dispatch: | |
env: | |
DOCKER_BUILDKIT: 1 | |
REGISTRY: ghcr.io | |
jobs: | |
build_and_push: | |
name: Push custom Docker image to GitHub Container Registry (ghcr.io) | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v3 | |
- name: Login to GitHub Packages | |
uses: docker/login-action@v1 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Build and Push image to GitHub Container Registry | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
file: Dockerfile | |
push: true | |
tags: | | |
${{ env.REGISTRY }}/${{ github.repository }}:${{ github.sha }} | |
${{ env.REGISTRY }}/${{ github.repository }}:latest | |
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ github.repository }}:buildcache | |
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ github.repository }}:buildcache,mode=max | |
- name: send a slack message | |
uses: bryannice/[email protected] | |
env: | |
SLACK_INCOMING_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} #WEBHOOK URL | |
SLACK_TITLE: ${{ github.job }} job of ${{ github.repository }} has ${{ job.status }} | |
SLACK_MESSAGE: ${{ github.job }} job in worflow ${{ github.workflow }} of ${{ github.repository }} has ${{ job.status }} |