Update wine to 9.4-wow64 #74
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: Automatic release from PR | |
on: | |
pull_request: | |
types: [labeled] | |
jobs: | |
merge-and-release: | |
env: | |
BASENAME: panard/mtgo | |
name: Merge and release | |
if: contains(github.event.pull_request.labels.*.name, 'merge-and-release') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Dump GitHub context | |
env: | |
GITHUB_CONTEXT: ${{ toJson(github) }} | |
run: echo "$GITHUB_CONTEXT" | |
- name: Tags | |
run: | | |
echo PR_TAG=pr${{ github.event.pull_request.number }} >> $GITHUB_ENV | |
echo TIMESTAMP=$(date +%F) >> $GITHUB_ENV | |
- name: Login to docker hub | |
uses: actions-hub/docker/login@master | |
env: | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Pull image | |
uses: actions-hub/docker@master | |
with: | |
args: pull $BASENAME:$PR_TAG | |
- name: automerge | |
uses: pascalgn/automerge-action@v0.14.2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
MERGE_LABELS: "" | |
MERGE_METHOD: "rebase" | |
- uses: actions/checkout@v2 | |
with: | |
ref: master | |
- name: Git tag | |
run: | | |
git tag $TIMESTAMP | |
git push --tags https://${GITHUB_ACTOR}:${{ secrets.PAT }}@github.com/${GITHUB_REPOSITORY}.git HEAD:master | |
echo WINE_TAG=wine-$(grep FROM Dockerfile|cut -d: -f2) >> $GITHUB_ENV | |
- run: | | |
docker tag $BASENAME:$PR_TAG $BASENAME:$TIMESTAMP | |
docker tag $BASENAME:$PR_TAG $BASENAME:$WINE_TAG | |
- name: Push image :timestamp | |
uses: actions-hub/docker@master | |
with: | |
args: push $BASENAME:$TIMESTAMP | |
- name: Push image :wine | |
uses: actions-hub/docker@master | |
with: | |
args: push $BASENAME:$WINE_TAG | |
- run: docker tag $BASENAME:$PR_TAG $BASENAME:latest | |
- name: Push image :latest | |
uses: actions-hub/docker@master | |
with: | |
args: push $BASENAME:latest | |
- name: Update sound image | |
run: docker build -t $BASENAME:sound sound | |
- name: Push image :sound | |
uses: actions-hub/docker@master | |
with: | |
args: push $BASENAME:sound | |
default: | |
name: default | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo 1 |