From 78b3fb251efbed129af6ad9f95febbe80f12bfd6 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Sun, 7 May 2023 10:47:04 +0200 Subject: [PATCH] Bump Go version in Dockerfile --- .github/workflows/docker-image.yml | 13 ++++++------- Dockerfile | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 6898c1e..1e43f99 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -2,7 +2,8 @@ name: build and publish a Docker image on: push: - branches: ['master'] + tags: + - 'v*' env: REGISTRY: ghcr.io @@ -20,22 +21,20 @@ jobs: uses: actions/checkout@v3 - name: Log in to the Container registry - uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 + uses: docker/login-action@v2 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Extract metadata (tags, labels) for Docker + - name: Extract metadata id: meta - uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 + uses: docker/metadata-action@9v4 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - tags: | - type=raw,latest - name: Build and push Docker image - uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + uses: docker/build-push-action@v4 with: context: . push: true diff --git a/Dockerfile b/Dockerfile index c37cf94..ef2e612 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.19-alpine +FROM golang:1.20-alpine LABEL org.opencontainers.image.source = "https://github.com/denyskon/teabag"