From cc97e21cce601727a78c72adb334d36c56d0ac4a Mon Sep 17 00:00:00 2001 From: Josh Kunz Date: Thu, 6 Jan 2022 22:20:44 -0800 Subject: [PATCH 1/3] Add github actions build --- .github/workflows/test.yaml | 51 +++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..d04feb9 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,51 @@ +name: Test +on: + pull_request: + branches: + - master + push: + branches: + - master + tags: + - v* + schedule: + - cron: 5 07 * * FRI + +jobs: + release-build: + name: Release Build + runs-on: ubuntu-latest + steps: + - name: Clone + uses: actions/checkout@v2 + - name: Set up Docker buildx + uses: docker/setup-buildx-action@v1 + - name: Generate docker tags + uses: docker/metadata-action@v3 + id: meta + with: + images: | + jkz0/qemu + ghcr.io/joshkunz/qemu-docker + tags: | + type=ref,event=tag + flavor: | + latest=true + - name: Login to DockerHub + uses: docker/login-action@v1 + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Login to Github Registry + uses: docker/login-action@v1 + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build and Push + uses: docker/build-push-action@v2 + with: + push: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }} + tags: ${{ steps.meta.outputs.tags }} From 0750a472bf4cbb968c1a876abf75abeebf97d7d9 Mon Sep 17 00:00:00 2001 From: Josh Kunz Date: Thu, 6 Jan 2022 22:22:23 -0800 Subject: [PATCH 2/3] Remove travis configuration --- .travis.yml | 15 --------------- .travis/deploy-docker-hub | 10 ---------- 2 files changed, 25 deletions(-) delete mode 100644 .travis.yml delete mode 100755 .travis/deploy-docker-hub diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 3d8120f..0000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: minimal - -env: - - IMAGE_NAME=jkz0/qemu - -services: - - docker - -script: docker build -t $IMAGE_NAME . - -deploy: - provider: script - script: .travis/deploy-docker-hub - on: - tags: true diff --git a/.travis/deploy-docker-hub b/.travis/deploy-docker-hub deleted file mode 100755 index 361b456..0000000 --- a/.travis/deploy-docker-hub +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env bash - -set -x -set -e - -echo $DOCKER_HUB_PASSWORD | docker login -u $DOCKER_HUB_USER --password-stdin -docker tag $IMAGE_NAME $IMAGE_NAME:latest -docker tag $IMAGE_NAME $IMAGE_NAME:$TRAVIS_TAG -docker push $IMAGE_NAME:latest -docker push $IMAGE_NAME:$TRAVIS_TAG From 244328c32cdb5b40a3cbe2fc36a508d5bd07bdcc Mon Sep 17 00:00:00 2001 From: Josh Kunz Date: Thu, 6 Jan 2022 22:27:39 -0800 Subject: [PATCH 3/3] Update debian version --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7f8dea6..b0ca9ed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM debian:buster-20190228-slim +FROM debian:bullseye-20211220-slim RUN apt-get update && apt-get -y upgrade && \ apt-get --no-install-recommends -y install \